2005-04-30 01:39:00 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-12 10:46:15 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-09-01 02:42:19 +08:00
|
|
|
|
2016-02-09 05:35:20 +08:00
|
|
|
<!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
|
2009-08-13 22:54:24 +08:00
|
|
|
<!ENTITY curl-download-ftp " ">
|
2017-02-28 17:35:38 +08:00
|
|
|
<!ENTITY curl-md5sum "78fce113c34e7a7941080bcd0d21fecc">
|
2016-11-07 00:42:39 +08:00
|
|
|
<!ENTITY curl-size "2.0 MB">
|
2017-02-28 17:35:38 +08:00
|
|
|
<!ENTITY curl-buildsize "39 MB (additional 10 MB for tests)">
|
|
|
|
<!ENTITY curl-time "0.4 SBU (additional 11.1 SBU for tests)">
|
2004-06-12 10:46:15 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-24 04:34:30 +08:00
|
|
|
<sect1 id="curl" xreflabel="cURL-&curl-version;">
|
2005-04-30 01:39:00 +08:00
|
|
|
<?dbhtml filename="curl.html"?>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
2005-07-31 13:47:39 +08:00
|
|
|
<date>$Date$</date>
|
2005-04-30 01:39:00 +08:00
|
|
|
</sect1info>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2007-01-15 05:29:53 +08:00
|
|
|
<title>cURL-&curl-version;</title>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<indexterm zone="curl">
|
2007-01-15 05:29:53 +08:00
|
|
|
<primary sortas="a-cURL">cURL</primary>
|
2005-04-30 01:39:00 +08:00
|
|
|
</indexterm>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<sect2 role="package">
|
2007-01-15 05:29:53 +08:00
|
|
|
<title>Introduction to cURL</title>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2016-09-08 11:33:30 +08:00
|
|
|
The <application>cURL</application> package contains an utility
|
2012-12-31 00:13:25 +08:00
|
|
|
and a library used for transferring files with URL syntax to any of
|
|
|
|
the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
|
|
|
|
TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
|
|
|
|
and upload files can be incorporated into other programs to support
|
|
|
|
functions like streaming media.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2017-02-15 08:20:11 +08:00
|
|
|
&lfs80_checked;
|
2009-08-13 22:54:24 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
2012-02-16 00:30:29 +08:00
|
|
|
<itemizedlist spacing="compact">
|
2005-04-30 01:39:00 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&curl-download-http;"/>
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&curl-download-ftp;"/>
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &curl-md5sum;
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download size: &curl-size;
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &curl-buildsize;
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &curl-time;
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2016-12-23 23:54:47 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Required patch:
|
|
|
|
<ulink url="&patch-root;/curl-&curl-version;-valgrind_filter-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2007-01-15 05:29:53 +08:00
|
|
|
<bridgehead renderas="sect3">cURL Dependencies</bridgehead>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2016-11-01 15:01:04 +08:00
|
|
|
<xref linkend="cacerts"/> (runtime) and
|
2012-07-20 00:27:40 +08:00
|
|
|
<xref linkend="openssl"/> or <xref linkend="gnutls"/>
|
|
|
|
</para>
|
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="mitkrb"/>,
|
2016-09-18 07:17:33 +08:00
|
|
|
<xref linkend="nghttp2"/>,
|
2014-07-19 01:51:38 +08:00
|
|
|
<xref linkend="openldap"/>,
|
2015-01-11 01:38:25 +08:00
|
|
|
<xref linkend="samba"/>,
|
2014-07-19 01:51:38 +08:00
|
|
|
<ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
|
2016-12-22 20:21:59 +08:00
|
|
|
<ulink url="https://www.gnu.org/software/libidn/#libidn2/">libidn2</ulink>,
|
2014-07-19 01:51:38 +08:00
|
|
|
<ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
|
2016-05-22 02:38:16 +08:00
|
|
|
<ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
|
|
|
|
<ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
|
2015-12-04 02:41:47 +08:00
|
|
|
<ulink url="http://www.libssh2.org">libssh2</ulink>,
|
|
|
|
<ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
|
|
|
|
PolarSSL)</ulink>, and
|
2014-11-06 01:31:04 +08:00
|
|
|
<ulink url="http://spnego.sourceforge.net/">
|
2012-07-20 00:27:40 +08:00
|
|
|
SPNEGO</ulink>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
|
|
|
|
<para role="optional">
|
2014-07-18 07:28:46 +08:00
|
|
|
<xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
|
|
|
|
<xref linkend="valgrind"/>
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2007-07-08 21:23:16 +08:00
|
|
|
|
2006-04-11 02:35:11 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-20 00:27:40 +08:00
|
|
|
<ulink url="&blfs-wiki;/curl"/>
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</sect2>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<sect2 role="installation">
|
2007-01-15 05:29:53 +08:00
|
|
|
<title>Installation of cURL</title>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Install <application>cURL</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2016-12-23 23:54:47 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../curl-&curl-version;-valgrind_filter-1.patch &&
|
|
|
|
./configure --prefix=/usr \
|
2016-10-29 17:56:12 +08:00
|
|
|
--disable-static \
|
|
|
|
--enable-threaded-resolver \
|
2016-11-26 15:20:28 +08:00
|
|
|
--with-ca-path=/etc/ssl/certs &&
|
2005-04-30 01:39:00 +08:00
|
|
|
make</userinput></screen>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2015-04-23 04:05:45 +08:00
|
|
|
<!-- <para>
|
2014-11-06 01:31:04 +08:00
|
|
|
Running the test suite is optional. About 2% of the tests fail. Increase
|
|
|
|
in test time by each failed test is about 10%. Tests SBU above was
|
|
|
|
obtained disabling failing tests, with:
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2014-07-18 07:28:46 +08:00
|
|
|
<screen><userinput>cat >> tests/data/DISABLED << "EOF"
|
2014-11-06 01:31:04 +08:00
|
|
|
<literal>564
|
|
|
|
700
|
|
|
|
701
|
|
|
|
703
|
|
|
|
706
|
|
|
|
707
|
|
|
|
708
|
|
|
|
709
|
|
|
|
710
|
|
|
|
711
|
2015-01-11 01:38:25 +08:00
|
|
|
712</literal>
|
2014-11-06 01:31:04 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2015-11-13 22:24:57 +08:00
|
|
|
I had the following fail:
|
|
|
|
300 301 303 304 306 309 310 311 312 325
|
|
|
|
400 401 403 406 407 408 409 560 1112 2034
|
2015-10-17 01:34:09 +08:00
|
|
|
2035 2037 2038 2041 2042
|
|
|
|
|
|
|
|
- Bruce 20151016
|
|
|
|
|
|
|
|
Tests may be using capabilites removed from recent ssh due to
|
2015-11-13 22:24:57 +08:00
|
|
|
security issues.
|
2015-10-17 01:34:09 +08:00
|
|
|
|
|
|
|
|
2014-11-06 01:31:04 +08:00
|
|
|
<para>
|
|
|
|
and running <command>make test</command>.
|
2015-04-23 04:05:45 +08:00
|
|
|
</para>-->
|
|
|
|
|
|
|
|
<para>
|
2016-07-21 10:39:01 +08:00
|
|
|
To run the test suite, issue: <command>make test</command>. <!-- Two tests,
|
|
|
|
1139 and 1140, may fail. Works fine for me. Douglas 20160720 --><!-- Some
|
2015-11-13 22:24:57 +08:00
|
|
|
tests (up to 2%) may fail due to timing issues, kernel configuration,
|
2015-12-04 02:41:47 +08:00
|
|
|
or other issues.-->
|
2014-11-06 01:31:04 +08:00
|
|
|
</para>
|
2014-07-18 07:28:46 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:
|
|
|
|
</para>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2012-02-16 00:30:29 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2015-08-13 09:50:44 +08:00
|
|
|
|
2016-02-09 05:35:20 +08:00
|
|
|
rm -rf docs/examples/.deps &&
|
|
|
|
|
2015-08-13 09:50:44 +08:00
|
|
|
find docs \( -name Makefile\* \
|
|
|
|
-o -name \*.1 \
|
|
|
|
-o -name \*.3 \) \
|
|
|
|
-exec rm {} \; &&
|
2005-01-05 05:40:54 +08:00
|
|
|
install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
2016-05-24 21:22:48 +08:00
|
|
|
cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
2015-04-29 20:53:39 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Simple tests to the new installed <command>curl</command>:
|
|
|
|
<command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
|
|
|
|
and
|
|
|
|
<command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
|
|
|
|
Inspect the locally created trace files <filename>debugdump.txt</filename>
|
|
|
|
and <filename>d.txt</filename>, which contain version downloaded
|
|
|
|
files information, etc. One file has the time for each action logged.
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
</sect2>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2012-08-01 07:44:40 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
2015-08-13 09:50:44 +08:00
|
|
|
|
2013-03-01 21:05:54 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--enable-threaded-resolver</parameter>: This switch enables
|
|
|
|
<application>cURL</application>'s builtin threaded DNS resolver.
|
|
|
|
</para>
|
|
|
|
|
2016-10-29 17:56:12 +08:00
|
|
|
<para>
|
2016-11-26 15:20:28 +08:00
|
|
|
<parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
|
|
|
|
switch sets the location of the BLFS <xref linkend="cacerts"/>.
|
2016-10-29 17:56:12 +08:00
|
|
|
</para>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
<option>--with-gssapi</option>: This parameter adds
|
|
|
|
<application>Kerberos 5</application> support to
|
|
|
|
<filename class="libraryfile">libcurl</filename>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--without-ssl --with-gnutls</option>: Use to
|
|
|
|
build with <application>GnuTLS</application> support
|
|
|
|
instead of <application>OpenSSL</application> for SSL/TLS.
|
|
|
|
</para>
|
2008-11-09 02:36:49 +08:00
|
|
|
|
2016-11-26 15:20:28 +08:00
|
|
|
<para>
|
2017-02-09 01:44:04 +08:00
|
|
|
<option>--with-ca-bundle=/etc/ssl/ca-bundle.crt</option>: Use
|
2016-11-26 15:20:28 +08:00
|
|
|
this switch instead of <parameter>--with-ca-path</parameter> if
|
|
|
|
building with <application>GnuTLS</application> support
|
|
|
|
instead of <application>OpenSSL</application> for SSL/TLS.
|
|
|
|
</para>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2015-08-13 09:50:44 +08:00
|
|
|
<command>find docs ... -exec rm {} \;</command>: This command removes
|
2012-07-20 00:27:40 +08:00
|
|
|
<filename>Makefiles</filename> and man files from the documentation
|
2015-01-11 01:38:25 +08:00
|
|
|
directory that would otherwise be installed by the commands that follow.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2008-12-20 18:06:48 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
</sect2>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<seglistitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<seg>
|
2016-11-26 15:20:28 +08:00
|
|
|
curl, and curl-config
|
2012-07-20 00:27:40 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libcurl.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/curl and
|
|
|
|
/usr/share/doc/curl-&curl-version;
|
|
|
|
</seg>
|
2005-04-30 01:39:00 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<varlistentry id="curl-prog">
|
|
|
|
<term><command>curl</command></term>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
is a command line tool for transferring files with URL syntax.
|
2008-12-20 18:06:48 +08:00
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
<indexterm zone="curl curl-prog">
|
|
|
|
<primary sortas="b-curl">curl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<varlistentry id="curl-config">
|
|
|
|
<term><command>curl-config</command></term>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
prints information about the last compile, like libraries
|
|
|
|
linked to and prefix setting.
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
<indexterm zone="curl curl-config">
|
|
|
|
<primary sortas="b-curl-config">curl-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:21:31 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
<varlistentry id="libcurl">
|
2012-02-16 00:30:29 +08:00
|
|
|
<term><filename class="libraryfile">libcurl.so</filename></term>
|
2005-04-30 01:39:00 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
provides the API functions required by
|
|
|
|
<command>curl</command> and other programs.
|
|
|
|
</para>
|
2005-04-30 01:39:00 +08:00
|
|
|
<indexterm zone="curl libcurl">
|
2012-02-16 00:30:29 +08:00
|
|
|
<primary sortas="c-libcurl">libcurl.so</primary>
|
2005-04-30 01:39:00 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-07-20 00:27:40 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
</variablelist>
|
2012-07-20 00:27:40 +08:00
|
|
|
|
2005-04-30 01:39:00 +08:00
|
|
|
</sect2>
|
2012-07-20 00:27:40 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect1>
|