source: networking/netlibs/curl.xml@ dd9e0c3

systemd-13485
Last change on this file since dd9e0c3 was 6d11bc30, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to dhcpcd-6.11.0
Update to qemu-2.5.11
Update to gnutls
Above merged from trunk r17359
GCC6 tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17360 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.7 KB
RevLine 
[bf8ac01]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a2d8572]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[8e2075c]6
[cecac4d]7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
[2b8421c]8 <!ENTITY curl-download-ftp " ">
[54aaa89]9 <!ENTITY curl-md5sum "de75665721e3adb0a1d7e03b90c3d7a2">
10 <!ENTITY curl-size "5.6 MB">
[cecac4d]11 <!ENTITY curl-buildsize "56 MB (with tests)">
[71c31f5]12 <!ENTITY curl-time "0.4 SBU (additional 8.8 SBU for tests, with parallelism = 4)">
[a2d8572]13]>
14
[377584f]15<sect1 id="curl" xreflabel="cURL-&curl-version;">
[bf8ac01]16 <?dbhtml filename="curl.html"?>
[dc775a26]17
[bf8ac01]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
[55329727]20 <date>$Date$</date>
[bf8ac01]21 </sect1info>
[dc775a26]22
[3e89149]23 <title>cURL-&curl-version;</title>
[dc775a26]24
[bf8ac01]25 <indexterm zone="curl">
[3e89149]26 <primary sortas="a-cURL">cURL</primary>
[bf8ac01]27 </indexterm>
[dc775a26]28
[bf8ac01]29 <sect2 role="package">
[3e89149]30 <title>Introduction to cURL</title>
[dc775a26]31
[355495ce]32 <para>
[17d8bc7]33 The <application>cURL</application> package contains an utility
[ea21196]34 and a library used for transferring files with URL syntax to any of
35 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
36 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
37 and upload files can be incorporated into other programs to support
38 functions like streaming media.
[355495ce]39 </para>
[dc775a26]40
[17d8bc7]41 &lfs79_checked;
[2b8421c]42
[6d11bc30]43 &gcc6_checked;
44
[bf8ac01]45 <bridgehead renderas="sect3">Package Information</bridgehead>
[874fec7f]46 <itemizedlist spacing="compact">
[bf8ac01]47 <listitem>
[355495ce]48 <para>
49 Download (HTTP): <ulink url="&curl-download-http;"/>
50 </para>
[bf8ac01]51 </listitem>
52 <listitem>
[355495ce]53 <para>
54 Download (FTP): <ulink url="&curl-download-ftp;"/>
55 </para>
[bf8ac01]56 </listitem>
57 <listitem>
[355495ce]58 <para>
59 Download MD5 sum: &curl-md5sum;
60 </para>
[bf8ac01]61 </listitem>
62 <listitem>
[355495ce]63 <para>
64 Download size: &curl-size;
65 </para>
[bf8ac01]66 </listitem>
67 <listitem>
[355495ce]68 <para>
69 Estimated disk space required: &curl-buildsize;
70 </para>
[bf8ac01]71 </listitem>
72 <listitem>
[355495ce]73 <para>
74 Estimated build time: &curl-time;
75 </para>
[bf8ac01]76 </listitem>
77 </itemizedlist>
[dc775a26]78
[3e89149]79 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
[dc775a26]80
[355495ce]81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref linkend="cacerts"/> and
84 <xref linkend="openssl"/> or <xref linkend="gnutls"/>
85 </para>
86
[bf8ac01]87 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]88 <para role="optional">
89 <xref linkend="libidn"/>,
90 <xref linkend="mitkrb"/>,
[fad8db2]91 <xref linkend="openldap"/>,
[ac38e9dc]92 <xref linkend="samba"/>,
[fad8db2]93 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
94 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
[71c31f5]95 <ulink url="https://github.com/rockdaboot/libpsl">Libpsl</ulink>,
96 <ulink url="http://www.libssh2.org">libssh2</ulink>,
97 <ulink url="https://nghttp2.org/">nghttp2</ulink>,
98 <ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
99 PolarSSL)</ulink>, and
[fcf1fd62]100 <ulink url="http://spnego.sourceforge.net/">
[355495ce]101 SPNEGO</ulink>
102 </para>
103
104 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
105 <para role="optional">
[f346a49]106 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
107 <xref linkend="valgrind"/>
[355495ce]108 </para>
[c5e7d76]109
[061ec9d]110 <para condition="html" role="usernotes">User Notes:
[355495ce]111 <ulink url="&blfs-wiki;/curl"/>
112 </para>
[bf8ac01]113 </sect2>
[dc775a26]114
[bf8ac01]115 <sect2 role="installation">
[3e89149]116 <title>Installation of cURL</title>
[dc775a26]117
[355495ce]118 <para>
119 Install <application>cURL</application> by running the following
120 commands:
121 </para>
[dc775a26]122
[f25b43cb]123<screen><userinput>./configure --prefix=/usr \
[fdd7a91]124 --disable-static \
[b9e1a58]125 --enable-threaded-resolver &amp;&amp;
[bf8ac01]126make</userinput></screen>
[dc775a26]127
[ac38e9dc]128<!-- <para>
[fcf1fd62]129 Running the test suite is optional. About 2% of the tests fail. Increase
130 in test time by each failed test is about 10%. Tests SBU above was
131 obtained disabling failing tests, with:
[355495ce]132 </para>
[dc775a26]133
[f346a49]134<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
[fcf1fd62]135<literal>564
136700
137701
138703
139706
140707
141708
142709
143710
144711
[ac38e9dc]145712</literal>
[fcf1fd62]146EOF</userinput></screen>
147
[71c31f5]148I had the following fail:
149 300 301 303 304 306 309 310 311 312 325
150 400 401 403 406 407 408 409 560 1112 2034
1512035 2037 2038 2041 2042
152
153 - Bruce 20151016
154
155Tests may be using capabilites removed from recent ssh due to
156security issues.
157
158
[fcf1fd62]159 <para>
160 and running <command>make test</command>.
[71c31f5]161 </para>-->
[ac38e9dc]162
163 <para>
[71c31f5]164 To run the test suite, issue: <command>make test</command>.<!-- Some
165 tests (up to 2%) may fail due to timing issues, kernel configuration,
166 or other issues.-->
[fcf1fd62]167 </para>
[f346a49]168
[355495ce]169 <para>
170 Now, as the <systemitem class="username">root</systemitem>
171 user:
172 </para>
[dc775a26]173
[874fec7f]174<screen role="root"><userinput>make install &amp;&amp;
[71c31f5]175
[cecac4d]176cp -a docs docs-save &amp;&amp;
177rm -rf docs/examples/.deps &amp;&amp;
178
[71c31f5]179find docs \( -name Makefile\* \
180 -o -name \*.1 \
181 -o -name \*.3 \) \
182 -exec rm {} \; &amp;&amp;
183install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[cecac4d]184cp -v -R docs/* /usr/share/doc/curl-&curl-version; &amp;&amp;
185
186rm -rf docs &amp;&amp;
187mv -i docs-save doc</userinput></screen>
[71c31f5]188
189 <para>
190 Simple tests to the new installed <command>curl</command>:
191 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
192 and
193 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
194 Inspect the locally created trace files <filename>debugdump.txt</filename>
195 and <filename>d.txt</filename>, which contain version downloaded
196 files information, etc. One file has the time for each action logged.
197 </para>
[bf8ac01]198 </sect2>
[dc775a26]199
[bf8ac01]200 <sect2 role="commands">
201 <title>Command Explanations</title>
[dc775a26]202
[c627795]203 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
204 href="../../xincludes/static-libraries.xml"/>
[71c31f5]205
[fdd7a91]206 <para>
207 <parameter>--enable-threaded-resolver</parameter>: This switch enables
208 <application>cURL</application>'s builtin threaded DNS resolver.
209 </para>
210
[355495ce]211 <para>
212 <option>--with-gssapi</option>: This parameter adds
213 <application>Kerberos 5</application> support to
214 <filename class="libraryfile">libcurl</filename>.
215 </para>
216
217 <para>
218 <option>--without-ssl --with-gnutls</option>: Use to
219 build with <application>GnuTLS</application> support
220 instead of <application>OpenSSL</application> for SSL/TLS.
221 </para>
[b834dfc7]222
[355495ce]223 <para>
[71c31f5]224 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]225 <filename>Makefiles</filename> and man files from the documentation
[ac38e9dc]226 directory that would otherwise be installed by the commands that follow.
[355495ce]227 </para>
[32a8ca3]228
[bf8ac01]229 </sect2>
[dc775a26]230
[bf8ac01]231 <sect2 role="content">
232 <title>Contents</title>
[dc775a26]233
[bf8ac01]234 <segmentedlist>
235 <segtitle>Installed Programs</segtitle>
236 <segtitle>Installed Library</segtitle>
237 <segtitle>Installed Directories</segtitle>
[dc775a26]238
[bf8ac01]239 <seglistitem>
[355495ce]240 <seg>
241 curl and curl-config
242 </seg>
243 <seg>
244 libcurl.so
245 </seg>
246 <seg>
247 /usr/include/curl and
248 /usr/share/doc/curl-&curl-version;
249 </seg>
[bf8ac01]250 </seglistitem>
251 </segmentedlist>
[dc775a26]252
[bf8ac01]253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
[dc775a26]257
[bf8ac01]258 <varlistentry id="curl-prog">
259 <term><command>curl</command></term>
260 <listitem>
[355495ce]261 <para>
262 is a command line tool for transferring files with URL syntax.
[32a8ca3]263 </para>
[bf8ac01]264 <indexterm zone="curl curl-prog">
265 <primary sortas="b-curl">curl</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
[dc775a26]269
[bf8ac01]270 <varlistentry id="curl-config">
271 <term><command>curl-config</command></term>
272 <listitem>
[355495ce]273 <para>
274 prints information about the last compile, like libraries
275 linked to and prefix setting.
276 </para>
[bf8ac01]277 <indexterm zone="curl curl-config">
278 <primary sortas="b-curl-config">curl-config</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
[dc775a26]282
[bf8ac01]283 <varlistentry id="libcurl">
[874fec7f]284 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]285 <listitem>
[355495ce]286 <para>
287 provides the API functions required by
288 <command>curl</command> and other programs.
289 </para>
[bf8ac01]290 <indexterm zone="curl libcurl">
[874fec7f]291 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]292 </indexterm>
293 </listitem>
294 </varlistentry>
[355495ce]295
[bf8ac01]296 </variablelist>
[355495ce]297
[bf8ac01]298 </sect2>
[355495ce]299
[f45b1953]300</sect1>
Note: See TracBrowser for help on using the repository browser.