[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 |
|
---|
[355495ce] | 7 | <!ENTITY curl-download-http "http://curl.haxx.se/download/curl-&curl-version;.tar.bz2">
|
---|
[2b8421c] | 8 | <!ENTITY curl-download-ftp " ">
|
---|
[f346a49] | 9 | <!ENTITY curl-md5sum "95c627abcf6494f5abe55effe7cd6a57">
|
---|
| 10 | <!ENTITY curl-size "3.1 MB">
|
---|
| 11 | <!ENTITY curl-buildsize "40 MB (additional 7 MB for tests)">
|
---|
| 12 | <!ENTITY curl-time "0.4 SBU (additional 8.2 SBU for tests)">
|
---|
[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>
|
---|
[4fcead9] | 33 | The <application>cURL</application> package contains a 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 |
|
---|
[81bd261] | 41 | &lfs76_checked;
|
---|
[2b8421c] | 42 |
|
---|
[bf8ac01] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[874fec7f] | 44 | <itemizedlist spacing="compact">
|
---|
[bf8ac01] | 45 | <listitem>
|
---|
[355495ce] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&curl-download-http;"/>
|
---|
| 48 | </para>
|
---|
[bf8ac01] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[355495ce] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&curl-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[bf8ac01] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[355495ce] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &curl-md5sum;
|
---|
| 58 | </para>
|
---|
[bf8ac01] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[355495ce] | 61 | <para>
|
---|
| 62 | Download size: &curl-size;
|
---|
| 63 | </para>
|
---|
[bf8ac01] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[355495ce] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &curl-buildsize;
|
---|
| 68 | </para>
|
---|
[bf8ac01] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[355495ce] | 71 | <para>
|
---|
| 72 | Estimated build time: &curl-time;
|
---|
| 73 | </para>
|
---|
[bf8ac01] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
[dc775a26] | 76 |
|
---|
[3e89149] | 77 | <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
|
---|
[dc775a26] | 78 |
|
---|
[355495ce] | 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
| 81 | <xref linkend="cacerts"/> and
|
---|
| 82 | <xref linkend="openssl"/> or <xref linkend="gnutls"/>
|
---|
| 83 | </para>
|
---|
| 84 |
|
---|
[bf8ac01] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[355495ce] | 86 | <para role="optional">
|
---|
| 87 | <xref linkend="libidn"/>,
|
---|
| 88 | <xref linkend="mitkrb"/>,
|
---|
[fad8db2] | 89 | <xref linkend="openldap"/>,
|
---|
| 90 | <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
|
---|
| 91 | <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
|
---|
| 92 | <ulink url="http://www.libssh2.org">libssh2</ulink>, and
|
---|
[355495ce] | 93 | <ulink url="http://www.vintela.com/resources/topics/spnego/">
|
---|
| 94 | SPNEGO</ulink>
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
|
---|
| 98 | <para role="optional">
|
---|
[f346a49] | 99 | <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
|
---|
| 100 | <xref linkend="valgrind"/>
|
---|
[355495ce] | 101 | </para>
|
---|
[c5e7d76] | 102 |
|
---|
[061ec9d] | 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 104 | <ulink url="&blfs-wiki;/curl"/>
|
---|
| 105 | </para>
|
---|
[bf8ac01] | 106 | </sect2>
|
---|
[dc775a26] | 107 |
|
---|
[bf8ac01] | 108 | <sect2 role="installation">
|
---|
[3e89149] | 109 | <title>Installation of cURL</title>
|
---|
[dc775a26] | 110 |
|
---|
[355495ce] | 111 | <para>
|
---|
| 112 | Install <application>cURL</application> by running the following
|
---|
| 113 | commands:
|
---|
| 114 | </para>
|
---|
[dc775a26] | 115 |
|
---|
[f25b43cb] | 116 | <screen><userinput>./configure --prefix=/usr \
|
---|
[fdd7a91] | 117 | --disable-static \
|
---|
[b9e1a58] | 118 | --enable-threaded-resolver &&
|
---|
[bf8ac01] | 119 | make</userinput></screen>
|
---|
[dc775a26] | 120 |
|
---|
[355495ce] | 121 | <para>
|
---|
[f346a49] | 122 | To test the results, issue: <command>make test</command>. Tests need many
|
---|
| 123 | conditions to run successfully, and some may fail. Usually, each failed
|
---|
| 124 | test takes a long time. If you wish to disable some tests, include them
|
---|
[2b65e69e] | 125 | in the appropriate file and run the tests again:
|
---|
[355495ce] | 126 | </para>
|
---|
[dc775a26] | 127 |
|
---|
[f346a49] | 128 | <screen><userinput>cat >> tests/data/DISABLED << "EOF"
|
---|
| 129 | <literal>numb1
|
---|
| 130 | ...
|
---|
| 131 | numbN
|
---|
| 132 | ...</literal>
|
---|
| 133 | EOF</userinput></screen>
|
---|
| 134 |
|
---|
[355495ce] | 135 | <para>
|
---|
| 136 | Now, as the <systemitem class="username">root</systemitem>
|
---|
| 137 | user:
|
---|
| 138 | </para>
|
---|
[dc775a26] | 139 |
|
---|
[874fec7f] | 140 | <screen role="root"><userinput>make install &&
|
---|
| 141 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &&
|
---|
[951fac10] | 142 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[ad426ac] | 143 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bf8ac01] | 144 | </sect2>
|
---|
[dc775a26] | 145 |
|
---|
[bf8ac01] | 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
[dc775a26] | 148 |
|
---|
[c627795] | 149 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 150 | href="../../xincludes/static-libraries.xml"/>
|
---|
[f25b43cb] | 151 |
|
---|
[fdd7a91] | 152 | <para>
|
---|
| 153 | <parameter>--enable-threaded-resolver</parameter>: This switch enables
|
---|
| 154 | <application>cURL</application>'s builtin threaded DNS resolver.
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
[355495ce] | 157 | <para>
|
---|
| 158 | <option>--with-gssapi</option>: This parameter adds
|
---|
| 159 | <application>Kerberos 5</application> support to
|
---|
| 160 | <filename class="libraryfile">libcurl</filename>.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
| 164 | <option>--without-ssl --with-gnutls</option>: Use to
|
---|
| 165 | build with <application>GnuTLS</application> support
|
---|
| 166 | instead of <application>OpenSSL</application> for SSL/TLS.
|
---|
| 167 | </para>
|
---|
[b834dfc7] | 168 |
|
---|
[355495ce] | 169 | <para>
|
---|
| 170 | <command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
|
---|
| 171 | \) -exec rm {} \;</command>: This command removes
|
---|
| 172 | <filename>Makefiles</filename> and man files from the documentation
|
---|
| 173 | directory that would otherwise be installed by the commands that
|
---|
| 174 | follow.
|
---|
| 175 | </para>
|
---|
[32a8ca3] | 176 |
|
---|
[bf8ac01] | 177 | </sect2>
|
---|
[dc775a26] | 178 |
|
---|
[bf8ac01] | 179 | <sect2 role="content">
|
---|
| 180 | <title>Contents</title>
|
---|
[dc775a26] | 181 |
|
---|
[bf8ac01] | 182 | <segmentedlist>
|
---|
| 183 | <segtitle>Installed Programs</segtitle>
|
---|
| 184 | <segtitle>Installed Library</segtitle>
|
---|
| 185 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 186 |
|
---|
[bf8ac01] | 187 | <seglistitem>
|
---|
[355495ce] | 188 | <seg>
|
---|
| 189 | curl and curl-config
|
---|
| 190 | </seg>
|
---|
| 191 | <seg>
|
---|
| 192 | libcurl.so
|
---|
| 193 | </seg>
|
---|
| 194 | <seg>
|
---|
| 195 | /usr/include/curl and
|
---|
| 196 | /usr/share/doc/curl-&curl-version;
|
---|
| 197 | </seg>
|
---|
[bf8ac01] | 198 | </seglistitem>
|
---|
| 199 | </segmentedlist>
|
---|
[dc775a26] | 200 |
|
---|
[bf8ac01] | 201 | <variablelist>
|
---|
| 202 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 203 | <?dbfo list-presentation="list"?>
|
---|
| 204 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 205 |
|
---|
[bf8ac01] | 206 | <varlistentry id="curl-prog">
|
---|
| 207 | <term><command>curl</command></term>
|
---|
| 208 | <listitem>
|
---|
[355495ce] | 209 | <para>
|
---|
| 210 | is a command line tool for transferring files with URL syntax.
|
---|
[32a8ca3] | 211 | </para>
|
---|
[bf8ac01] | 212 | <indexterm zone="curl curl-prog">
|
---|
| 213 | <primary sortas="b-curl">curl</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[dc775a26] | 217 |
|
---|
[bf8ac01] | 218 | <varlistentry id="curl-config">
|
---|
| 219 | <term><command>curl-config</command></term>
|
---|
| 220 | <listitem>
|
---|
[355495ce] | 221 | <para>
|
---|
| 222 | prints information about the last compile, like libraries
|
---|
| 223 | linked to and prefix setting.
|
---|
| 224 | </para>
|
---|
[bf8ac01] | 225 | <indexterm zone="curl curl-config">
|
---|
| 226 | <primary sortas="b-curl-config">curl-config</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[dc775a26] | 230 |
|
---|
[bf8ac01] | 231 | <varlistentry id="libcurl">
|
---|
[874fec7f] | 232 | <term><filename class="libraryfile">libcurl.so</filename></term>
|
---|
[bf8ac01] | 233 | <listitem>
|
---|
[355495ce] | 234 | <para>
|
---|
| 235 | provides the API functions required by
|
---|
| 236 | <command>curl</command> and other programs.
|
---|
| 237 | </para>
|
---|
[bf8ac01] | 238 | <indexterm zone="curl libcurl">
|
---|
[874fec7f] | 239 | <primary sortas="c-libcurl">libcurl.so</primary>
|
---|
[bf8ac01] | 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
[355495ce] | 243 |
|
---|
[bf8ac01] | 244 | </variablelist>
|
---|
[355495ce] | 245 |
|
---|
[bf8ac01] | 246 | </sect2>
|
---|
[355495ce] | 247 |
|
---|
[f45b1953] | 248 | </sect1>
|
---|