source: networking/netlibs/curl.xml@ b7f5d5c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b7f5d5c was 7c56ece, checked in by Pierre Labastie <pieere@…>, 4 years ago

Finish formatting "networking"

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22877 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.xz">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "eb77b3acf050df4afbc780367e0e7064">
10 <!ENTITY curl-size "2.4 MB">
11 <!ENTITY curl-buildsize "82 MB (add 17 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (add 15 SBU for tests)">
13]>
14
15<sect1 id="curl" xreflabel="cURL-&curl-version;">
16 <?dbhtml filename="curl.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cURL-&curl-version;</title>
24
25 <indexterm zone="curl">
26 <primary sortas="a-cURL">cURL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cURL</title>
31
32 <para>
33 The <application>cURL</application> package contains an utility
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.
39 </para>
40
41 &lfs91_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&curl-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&curl-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &curl-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &curl-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &curl-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &curl-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76<!--
77 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Patch to fix DNS resolution issues: <ulink
82 url="&patch-root;/curl-7.65.1-fix_dns_segfaults-2.patch"/>
83 </para>
84 </listitem>
85 </itemizedlist>
86-->
87
88 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
92 <xref role="runtime" linkend="make-ca"/> (runtime)
93 </para>
94
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <xref linkend="brotli"/>,
98 <xref linkend="c-ares"/>,
99 <xref linkend="gnutls"/>,
100 <xref linkend="libidn2"/>,
101 <xref linkend="libpsl"/>,
102 <xref linkend="libssh2"/>,
103 <xref linkend="mitkrb"/>,
104 <xref linkend="nghttp2"/>,
105 <xref linkend="openldap"/>,
106 <xref linkend="samba"/>,
107 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
108 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>, and
109 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
110 PolarSSL), and -->
111 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
112 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
113 </para>
114
115 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
116 <para role="optional">
117 <!-- stunnel is still listed in the docs as required, but 7.58.0
118 tests completed happily without it, although the test for unit1323
119 reported that the tool set in the test case does not exist - ken -->
120 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
121 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
122 </para>
123
124 <para condition="html" role="usernotes">User Notes:
125 <ulink url="&blfs-wiki;/curl"/>
126 </para>
127 </sect2>
128
129 <sect2 role="installation">
130 <title>Installation of cURL</title>
131<!--
132 <para>
133 First, apply a patch to fix DNS resolution issues:
134 </para>
135
136<screen><userinput>patch -Np1 -i ../curl-7.65.1-fix_dns_segfaults-2.patch</userinput></screen>
137-->
138
139 <para>
140 Install <application>cURL</application> by running the following
141 commands:
142 </para>
143
144<screen><userinput>./configure --prefix=/usr \
145 --disable-static \
146 --enable-threaded-resolver \
147 --with-ca-path=/etc/ssl/certs &amp;&amp;
148make</userinput></screen>
149
150<!--
151 For version 7.54.1 I got:
152 TESTDONE: 869 tests out of 869 reported OK: 100%
153 TESTDONE: 1092 tests were considered during 1080 seconds
154
155 <para>
156 Running the test suite is optional. About 2% of the tests fail. Increase
157 in test time by each failed test is about 10%. Tests SBU above was
158 obtained disabling failing tests, with:
159 </para>
160
161 2017-10-29 - bdubbs
162 For version 7.56.1 I had a lot of test failures which included long
163 timeouts. Could not determine the cause of the timeouts or failures,
164 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
165 external packages.
166
167 2017-12-01 - bdubbs
168 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
169 installed this time. Best guess is that servers are not available.
170
171 2018-08-01 - renodr
172 No test failures, but I didn't have any of the optional dependencies except
173 for c-ares and libidn2. I might re-run this test suite before release with
174 all of the optional deps, but right now, it isn't a priority - rather
175 the security fix is.
176-->
177
178 <para>
179 To run the test suite, issue: <command>make test</command>.
180 Tests 323, 1139, 1140, and 1173 are known to fail.
181 A few other tests may fail randomly for unknown reasons.
182 </para>
183<!-- Two (of 857) tests
184fail for unknown reasons, and all tests fail is valgrind is installed. Moving
185valgrind out of $PATH is recommended if you wish to run the test suite while
186it is installed.
187
188Added by Pierre for curl-7.59.0:
189no stunnel, no valgrind, no options
190Warning: smb server unexpectedly alive
191Warning: dict server unexpectedly alive
192TESTDONE: 950 tests out of 951 reported OK: 99%
193TESTFAIL: These test cases failed: 1148
194TESTDONE: 1189 tests were considered during 362 seconds.
195__________
196
197 if stunnel and valgrind are not installed, and also most options
198 (I had rtmpdump), the tests complete without problems.
199Warning: smb server unexpectedly alive
200Warning: dict server unexpectedly alive
201TESTDONE: 938 tests out of 938 reported OK: 100%
202TESTDONE: 1175 tests were considered during 355 seconds.
203 and no. I don't have smb - so commenting the rest of this:
204 To run the test suite, issue: <command>make test</command>. Many tests
205 may fail that depend on optional dependencies that may not be installed
206 or upstream servers that may not be available, especially for tests
207 numbered 700 and above.
208 Test time may be significantly increase due to hanging tests that fail.
209__________
210Added by Bruce for curl-7.60.0:
211TESTDONE: 957 tests out of 959 reported OK: 99%
212TESTFAIL: These test cases failed: 1139 1140
213TESTDONE: 1196 tests were considered during 1184 seconds.
214From the logs, both appear to be ipv6 releated.
215
216==========
217Added by Douglas for curl-7.61.0:
218TESTDONE: 961 tests out of 961 reported OK: 100%
219TESTDONE: 1202 tests were considered during 338 seconds.
220I only have c-ares and libidn2 installed, I will likely try before release
221with all optional dependencies in the book installed.
222
223=========
2247.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
225It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
226c-ares, libpsl, and libidn1/2 installed. - Doug
227
228========
2297.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
230All 1098 tests report OK.
231
232=======
233Added by Douglas for curl-7.64.0:
234TESTDONE: 1022 tests out of 1023 reported OK: 99%
235TESTFAIL: These tests cases failed: 323
236TESTDONE: 1235 tests were considered during 1279 seconds.
237For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
238OpenLDAP, Samba, stunnel, and Valgrind installed.
239=======
240Added by bdubbs for curl-7.64.1:
241TESTDONE: 1022 tests out of 1025 reported OK: 99%
242TESTFAIL: These test cases failed: 323 1139 1140
243TESTDONE: 1242 tests were considered during 1483 seconds
244
245=======
246Added by renodr for curl-7.65.1:
247TESTDONE: 996 tests out of 997 reported OK: 99%
248TESTFAIL: These test cases failed: 1560
249TESTDONE: 1249 tests were considered during 1091 seconds.
250All dependencies except for externals installed.
251=======
252Added by bdubbs for curl-7.65.2:
253TESTDONE: 1034 tests out of 1036 reported OK: 99%
254TESTFAIL: These test cases failed: 323 1560
255TESTDONE: 1254 tests were considered during 1362 seconds.
256Time above does not include test build time.
257All dependencies except for externals installed.
258=======
259Added by bdubbs for curl-7.65.3:
260TESTDONE: 1031 tests out of 1036 reported OK: 99%
261TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
262TESTDONE: 1254 tests were considered during 1364 seconds.
263
264The tests that fail seem to be somewhat random. What happened between
265yesterday and today that that tests 1139 1140 1173 now fail?
266
267=======
268Added by bdubbs for curl-7.68.0:
269TESTDONE: 1066 tests out of 1071 reported OK: 99%
270TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
271TESTDONE: 1290 tests were considered during 1515 seconds.
272
273=======
274Added by bdubbs for curl-7.69.0:
275TESTDONE: 074 tests out of 1079 reported OK: 99%
276TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
277TESTDONE: 1320 tests were considered during 1514 seconds.
278
279For curl-7.69.1, 1082 tests out of 1086 reported OK. 1560 now passes.
2801330 tests were considered during 1528 seconds.
281
282-->
283
284 <para>
285 Now, as the <systemitem class="username">root</systemitem>
286 user:
287 </para>
288
289<screen role="root"><userinput>make install &amp;&amp;
290
291rm -rf docs/examples/.deps &amp;&amp;
292
293find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
294
295install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
296cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
297
298 <para>
299 Simple tests to the new installed <command>curl</command>:
300 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
301 and
302 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
303 Inspect the locally created trace files <filename>debugdump.txt</filename>
304 and <filename>d.txt</filename>, which contain version downloaded
305 files information, etc. One file has the time for each action logged.
306 </para>
307 </sect2>
308
309 <sect2 role="commands">
310 <title>Command Explanations</title>
311
312 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
313 href="../../xincludes/static-libraries.xml"/>
314
315 <para>
316 <parameter>--enable-threaded-resolver</parameter>: This switch enables
317 <application>cURL</application>'s builtin threaded DNS resolver.
318 </para>
319
320 <para>
321 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
322 switch sets the location of the BLFS Certificate Authority store.
323 </para>
324
325 <para>
326 <option>--with-gssapi</option>: This parameter adds
327 <application>Kerberos 5</application> support to
328 <filename class="libraryfile">libcurl</filename>.
329 </para>
330
331 <para>
332 <option>--without-ssl --with-gnutls</option>: Use to
333 build with <application>GnuTLS</application> support
334 instead of <application>OpenSSL</application> for SSL/TLS.
335 </para>
336
337 <para>
338 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
339 this switch instead of <parameter>--with-ca-path</parameter> if
340 building with <application>GnuTLS</application> support
341 instead of <application>OpenSSL</application> for SSL/TLS.
342 </para>
343
344 <para>
345 <option>--with-libssh2</option>: This paramater adds
346 <application>SSH</application> support to cURL. This is disabled
347 by default.
348 </para>
349
350 <para>
351 <option>--enable-ares</option>: This paramater adds
352 support for DNS resolution through the c-ares library. It is disabled
353 by default, but does speed up DNS resolution queries.
354 </para>
355
356 <para>
357 <command>find docs ... -exec rm {} \;</command>: This command removes
358 <filename>Makefiles</filename> and man files from the documentation
359 directory that would otherwise be installed by the commands that follow.
360 </para>
361
362 </sect2>
363
364 <sect2 role="content">
365 <title>Contents</title>
366
367 <segmentedlist>
368 <segtitle>Installed Programs</segtitle>
369 <segtitle>Installed Library</segtitle>
370 <segtitle>Installed Directories</segtitle>
371
372 <seglistitem>
373 <seg>
374 curl and curl-config
375 </seg>
376 <seg>
377 libcurl.so
378 </seg>
379 <seg>
380 /usr/include/curl and
381 /usr/share/doc/curl-&curl-version;
382 </seg>
383 </seglistitem>
384 </segmentedlist>
385
386 <variablelist>
387 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
388 <?dbfo list-presentation="list"?>
389 <?dbhtml list-presentation="table"?>
390
391 <varlistentry id="curl-prog">
392 <term><command>curl</command></term>
393 <listitem>
394 <para>
395 is a command line tool for transferring files with URL syntax.
396 </para>
397 <indexterm zone="curl curl-prog">
398 <primary sortas="b-curl">curl</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="curl-config">
404 <term><command>curl-config</command></term>
405 <listitem>
406 <para>
407 prints information about the last compile, like libraries
408 linked to and prefix setting.
409 </para>
410 <indexterm zone="curl curl-config">
411 <primary sortas="b-curl-config">curl-config</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="libcurl">
417 <term><filename class="libraryfile">libcurl.so</filename></term>
418 <listitem>
419 <para>
420 provides the API functions required by
421 <command>curl</command> and other programs.
422 </para>
423 <indexterm zone="curl libcurl">
424 <primary sortas="c-libcurl">libcurl.so</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 </variablelist>
430
431 </sect2>
432
433</sect1>
Note: See TracBrowser for help on using the repository browser.