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
|
|
|
|
2014-09-24 06:52:35 +08:00
|
|
|
<!ENTITY curl-download-http "http://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
|
2009-08-13 22:54:24 +08:00
|
|
|
<!ENTITY curl-download-ftp " ">
|
2015-06-18 05:33:56 +08:00
|
|
|
<!ENTITY curl-md5sum "95df6d1ce9c970289d2997e603d6fd79">
|
2015-04-29 20:53:39 +08:00
|
|
|
<!ENTITY curl-size "2.7 MB">
|
2015-06-18 05:33:56 +08:00
|
|
|
<!ENTITY curl-buildsize "43 MB (additional 8 MB for tests)">
|
|
|
|
<!ENTITY curl-time "0.4 SBU (additional 9.2 SBU for tests, with -j4)">
|
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>
|
2013-12-18 01:30:51 +08:00
|
|
|
The <application>cURL</application> package contains a 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
|
|
|
|
2015-04-30 17:32:51 +08:00
|
|
|
&lfs77_checked; &gcc5_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
|
|
|
|
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">
|
|
|
|
<xref linkend="cacerts"/> and
|
|
|
|
<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="libidn"/>,
|
|
|
|
<xref linkend="mitkrb"/>,
|
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>,
|
|
|
|
<ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
|
|
|
|
<ulink url="http://www.libssh2.org">libssh2</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
|
|
|
|
2013-06-28 06:03:22 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2013-03-01 21:05:54 +08:00
|
|
|
--disable-static \
|
2013-10-19 15:51:25 +08:00
|
|
|
--enable-threaded-resolver &&
|
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>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
and running <command>make test</command>.
|
2015-04-23 04:05:45 +08:00
|
|
|
</para>-->
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To run the test suite, issue: <command>make test</command>.
|
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-01-11 01:38:25 +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; &&
|
2011-01-04 23:15:56 +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"/>
|
2013-06-28 06:03:22 +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>
|
|
|
|
|
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
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2015-01-11 01:38:25 +08:00
|
|
|
<command>find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \)
|
|
|
|
-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>
|
|
|
|
curl and curl-config
|
|
|
|
</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>
|