source: networking/netlibs/curl.xml@ c24aa343

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 c24aa343 was c24aa343, checked in by Xi Ruoyao <xry111@…>, 3 years ago

curl: update download URL

https://curl.haxx.se/* is 301 Moved Permanently to https://curl.se/*.

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