[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 " ">
|
---|
[f25b43cb] | 9 | <!ENTITY curl-md5sum "b7bea20579ac2f696338ae03f2c19ba5">
|
---|
[0c7d410] | 10 | <!ENTITY curl-size "2.6 MB">
|
---|
[f25b43cb] | 11 | <!ENTITY curl-buildsize "35 MB (additional 7 MB for tests)">
|
---|
| 12 | <!ENTITY curl-time "0.4 SBU (additional 3.1 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>
|
---|
[ea21196] | 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.
|
---|
[355495ce] | 39 | </para>
|
---|
[dc775a26] | 40 |
|
---|
[405c8dc] | 41 | &lfs73_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 | <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
|
---|
| 88 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
| 89 | <xref linkend="libidn"/>,
|
---|
[c627795] | 90 | <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
|
---|
[355495ce] | 91 | <ulink url="http://www.libssh2.org">libssh2</ulink>,
|
---|
| 92 | <xref linkend="mitkrb"/>,
|
---|
| 93 | <xref linkend="openldap"/> and
|
---|
| 94 | <ulink url="http://www.vintela.com/resources/topics/spnego/">
|
---|
| 95 | SPNEGO</ulink>
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
|
---|
| 99 | <para role="optional">
|
---|
| 100 | <xref linkend="stunnel"/> (for the HTTPS and FTPS tests)
|
---|
| 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 \
|
---|
| 118 | --enable-threaded-resolver \
|
---|
| 119 | --with-ca-path=/etc/ssl/certs &&
|
---|
[bf8ac01] | 120 | make</userinput></screen>
|
---|
[dc775a26] | 121 |
|
---|
[355495ce] | 122 | <para>
|
---|
[f25b43cb] | 123 | To test the results, issue:
|
---|
| 124 | <command>sed -i 's/^#LDADD/LDADD/' docs/examples/Makefile; make check</command>.
|
---|
[355495ce] | 125 | </para>
|
---|
[dc775a26] | 126 |
|
---|
[355495ce] | 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem>
|
---|
| 129 | user:
|
---|
| 130 | </para>
|
---|
[dc775a26] | 131 |
|
---|
[874fec7f] | 132 | <screen role="root"><userinput>make install &&
|
---|
| 133 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &&
|
---|
[951fac10] | 134 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[ad426ac] | 135 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bf8ac01] | 136 | </sect2>
|
---|
[dc775a26] | 137 |
|
---|
[bf8ac01] | 138 | <sect2 role="commands">
|
---|
| 139 | <title>Command Explanations</title>
|
---|
[dc775a26] | 140 |
|
---|
[f25b43cb] | 141 | <!--
|
---|
[1e62b33] | 142 | <para>
|
---|
[f25b43cb] | 143 | <command>sed -i '/- -static-libs)/{N;s#echo .*#echo #;}'
|
---|
[b3aacc0] | 144 | curl-config.in</command>: Since the static libraries have not been installed,
|
---|
| 145 | this <command>sed</command> removes the static libs line from
|
---|
| 146 | <command>curl-config</command> as it might otherwise confuse other
|
---|
[0c7d410] | 147 | applications.
|
---|
[1e62b33] | 148 | </para>
|
---|
[f25b43cb] | 149 | -->
|
---|
[c627795] | 150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 151 | href="../../xincludes/static-libraries.xml"/>
|
---|
[f25b43cb] | 152 |
|
---|
[fdd7a91] | 153 | <para>
|
---|
| 154 | <parameter>--enable-threaded-resolver</parameter>: This switch enables
|
---|
| 155 | <application>cURL</application>'s builtin threaded DNS resolver.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
[355495ce] | 158 | <para>
|
---|
| 159 | <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This parameter
|
---|
| 160 | sets the directory to use as the path to the SSL certificates.
|
---|
| 161 | If you've not installed <xref linkend="openssl"/> or
|
---|
| 162 | <xref linkend="gnutls"/> and the <xref linkend="cacerts"/> you can
|
---|
| 163 | remove this option.
|
---|
| 164 | </para>
|
---|
[9cf31e6] | 165 |
|
---|
[355495ce] | 166 | <para>
|
---|
| 167 | <option>--with-gssapi</option>: This parameter adds
|
---|
| 168 | <application>Kerberos 5</application> support to
|
---|
| 169 | <filename class="libraryfile">libcurl</filename>.
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para>
|
---|
| 173 | <option>--without-ssl --with-gnutls</option>: Use to
|
---|
| 174 | build with <application>GnuTLS</application> support
|
---|
| 175 | instead of <application>OpenSSL</application> for SSL/TLS.
|
---|
| 176 | </para>
|
---|
[b834dfc7] | 177 |
|
---|
[355495ce] | 178 | <para>
|
---|
| 179 | <command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
|
---|
| 180 | \) -exec rm {} \;</command>: This command removes
|
---|
| 181 | <filename>Makefiles</filename> and man files from the documentation
|
---|
| 182 | directory that would otherwise be installed by the commands that
|
---|
| 183 | follow.
|
---|
| 184 | </para>
|
---|
[32a8ca3] | 185 |
|
---|
[bf8ac01] | 186 | </sect2>
|
---|
[dc775a26] | 187 |
|
---|
[bf8ac01] | 188 | <sect2 role="content">
|
---|
| 189 | <title>Contents</title>
|
---|
[dc775a26] | 190 |
|
---|
[bf8ac01] | 191 | <segmentedlist>
|
---|
| 192 | <segtitle>Installed Programs</segtitle>
|
---|
| 193 | <segtitle>Installed Library</segtitle>
|
---|
| 194 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 195 |
|
---|
[bf8ac01] | 196 | <seglistitem>
|
---|
[355495ce] | 197 | <seg>
|
---|
| 198 | curl and curl-config
|
---|
| 199 | </seg>
|
---|
| 200 | <seg>
|
---|
| 201 | libcurl.so
|
---|
| 202 | </seg>
|
---|
| 203 | <seg>
|
---|
| 204 | /usr/include/curl and
|
---|
| 205 | /usr/share/doc/curl-&curl-version;
|
---|
| 206 | </seg>
|
---|
[bf8ac01] | 207 | </seglistitem>
|
---|
| 208 | </segmentedlist>
|
---|
[dc775a26] | 209 |
|
---|
[bf8ac01] | 210 | <variablelist>
|
---|
| 211 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 212 | <?dbfo list-presentation="list"?>
|
---|
| 213 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 214 |
|
---|
[bf8ac01] | 215 | <varlistentry id="curl-prog">
|
---|
| 216 | <term><command>curl</command></term>
|
---|
| 217 | <listitem>
|
---|
[355495ce] | 218 | <para>
|
---|
| 219 | is a command line tool for transferring files with URL syntax.
|
---|
[32a8ca3] | 220 | </para>
|
---|
[bf8ac01] | 221 | <indexterm zone="curl curl-prog">
|
---|
| 222 | <primary sortas="b-curl">curl</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
[dc775a26] | 226 |
|
---|
[bf8ac01] | 227 | <varlistentry id="curl-config">
|
---|
| 228 | <term><command>curl-config</command></term>
|
---|
| 229 | <listitem>
|
---|
[355495ce] | 230 | <para>
|
---|
| 231 | prints information about the last compile, like libraries
|
---|
| 232 | linked to and prefix setting.
|
---|
| 233 | </para>
|
---|
[bf8ac01] | 234 | <indexterm zone="curl curl-config">
|
---|
| 235 | <primary sortas="b-curl-config">curl-config</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
[dc775a26] | 239 |
|
---|
[bf8ac01] | 240 | <varlistentry id="libcurl">
|
---|
[874fec7f] | 241 | <term><filename class="libraryfile">libcurl.so</filename></term>
|
---|
[bf8ac01] | 242 | <listitem>
|
---|
[355495ce] | 243 | <para>
|
---|
| 244 | provides the API functions required by
|
---|
| 245 | <command>curl</command> and other programs.
|
---|
| 246 | </para>
|
---|
[bf8ac01] | 247 | <indexterm zone="curl libcurl">
|
---|
[874fec7f] | 248 | <primary sortas="c-libcurl">libcurl.so</primary>
|
---|
[bf8ac01] | 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
[355495ce] | 252 |
|
---|
[bf8ac01] | 253 | </variablelist>
|
---|
[355495ce] | 254 |
|
---|
[bf8ac01] | 255 | </sect2>
|
---|
[355495ce] | 256 |
|
---|
[f45b1953] | 257 | </sect1>
|
---|