[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 |
|
---|
[874fec7f] | 7 | <!ENTITY curl-download-http
|
---|
| 8 | "http://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
|
---|
| 9 | <!--<!ENTITY curl-download-ftp
|
---|
| 10 | "ftp://gd.tuwien.ac.at/utils/archivers/curl/curl-&curl-version;.tar.bz2">-->
|
---|
[2b8421c] | 11 | <!ENTITY curl-download-ftp " ">
|
---|
[874fec7f] | 12 | <!ENTITY curl-md5sum "713d7d7cbc5cfaabd785a2ff905096f2">
|
---|
| 13 | <!ENTITY curl-size "1.9 MB">
|
---|
| 14 | <!ENTITY curl-buildsize "31 MB">
|
---|
| 15 | <!ENTITY curl-time "0.5 SBU">
|
---|
[a2d8572] | 16 | ]>
|
---|
| 17 |
|
---|
[377584f] | 18 | <sect1 id="curl" xreflabel="cURL-&curl-version;">
|
---|
[bf8ac01] | 19 | <?dbhtml filename="curl.html"?>
|
---|
[dc775a26] | 20 |
|
---|
[bf8ac01] | 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
[55329727] | 23 | <date>$Date$</date>
|
---|
[bf8ac01] | 24 | </sect1info>
|
---|
[dc775a26] | 25 |
|
---|
[3e89149] | 26 | <title>cURL-&curl-version;</title>
|
---|
[dc775a26] | 27 |
|
---|
[bf8ac01] | 28 | <indexterm zone="curl">
|
---|
[3e89149] | 29 | <primary sortas="a-cURL">cURL</primary>
|
---|
[bf8ac01] | 30 | </indexterm>
|
---|
[dc775a26] | 31 |
|
---|
[bf8ac01] | 32 | <sect2 role="package">
|
---|
[3e89149] | 33 | <title>Introduction to cURL</title>
|
---|
[dc775a26] | 34 |
|
---|
[2ca26748] | 35 | <para>The <application>cURL</application> package contains
|
---|
[32a8ca3] | 36 | <command>curl</command> and its support library
|
---|
| 37 | <filename class="libraryfile">libcurl</filename>. This is useful for
|
---|
| 38 | transferring files with URL syntax to any of the following protocols:
|
---|
| 39 | FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE.
|
---|
[874fec7f] | 40 | This ability to both download and upload files can be incorporated into
|
---|
| 41 | other programs to support functions like streaming media.</para>
|
---|
[dc775a26] | 42 |
|
---|
[b88be39] | 43 | &lfs70_checked;
|
---|
[2b8421c] | 44 |
|
---|
[bf8ac01] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[874fec7f] | 46 | <itemizedlist spacing="compact">
|
---|
[bf8ac01] | 47 | <listitem>
|
---|
| 48 | <para>Download (HTTP): <ulink url="&curl-download-http;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download (FTP): <ulink url="&curl-download-ftp;"/></para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download MD5 sum: &curl-md5sum;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download size: &curl-size;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated disk space required: &curl-buildsize;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Estimated build time: &curl-time;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </itemizedlist>
|
---|
[dc775a26] | 66 |
|
---|
[3e89149] | 67 | <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
|
---|
[dc775a26] | 68 |
|
---|
[bf8ac01] | 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[358241d1] | 70 | <para role="optional"><!-- <xref linkend="pkgconfig"/>, -->
|
---|
[d5404360] | 71 | <xref linkend="openssl"/> or <xref linkend="gnutls"/>,
|
---|
[2ca26748] | 72 | <xref linkend="openldap"/>,
|
---|
[fcd6bf9d] | 73 | <xref linkend="libidn"/>,
|
---|
[2ca26748] | 74 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
|
---|
[a41f643] | 75 | <ulink url="http://www.libssh2.org">libssh2</ulink>
|
---|
[32a8ca3] | 76 | (for secure transfers),
|
---|
[2ca26748] | 77 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
[874fec7f] | 78 | <ulink
|
---|
| 79 | url="http://www.vintela.com/resources/topics/spnego/">SPNEGO</ulink>, and
|
---|
[bf8ac01] | 80 | <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink></para>
|
---|
[dc775a26] | 81 |
|
---|
[874fec7f] | 82 | <bridgehead renderas="sect4">Optional for Running the Test
|
---|
| 83 | Suite</bridgehead>
|
---|
| 84 | <para role="optional"><xref linkend="stunnel"/> (for the HTTPS and FTPS
|
---|
| 85 | tests)</para>
|
---|
[c5e7d76] | 86 |
|
---|
| 87 | <!-- and
|
---|
[1c65bfd] | 88 | <ulink url="http://valgrind.org/">Valgrind</ulink> (not used if building
|
---|
[c5e7d76] | 89 | the shared library)</para> -->
|
---|
[dc775a26] | 90 |
|
---|
[061ec9d] | 91 | <para condition="html" role="usernotes">User Notes:
|
---|
| 92 | <ulink url="&blfs-wiki;/curl"/></para>
|
---|
[bf8ac01] | 93 | </sect2>
|
---|
[dc775a26] | 94 |
|
---|
[bf8ac01] | 95 | <sect2 role="installation">
|
---|
[3e89149] | 96 | <title>Installation of cURL</title>
|
---|
[dc775a26] | 97 |
|
---|
[2ca26748] | 98 | <para>Install <application>cURL</application> by running the following
|
---|
[bf8ac01] | 99 | commands:</para>
|
---|
[dc775a26] | 100 |
|
---|
[9cf31e6] | 101 | <screen><userinput>./configure --prefix=/usr --disable-static --with-ca-path=/etc/ssl/certs &&
|
---|
[bf8ac01] | 102 | make</userinput></screen>
|
---|
[dc775a26] | 103 |
|
---|
[4880b3d2] | 104 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 105 | if you have <application>Stunnel</application> and
|
---|
| 106 | <application>TCP Wrapper</application> installed and you wish to perform
|
---|
| 107 | the HTTPS tests, you'll need to have an unrestrictive
|
---|
| 108 | <filename>/etc/hosts.deny</filename> file.</para>
|
---|
[dc775a26] | 109 |
|
---|
[874fec7f] | 110 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 111 | user:</para>
|
---|
[dc775a26] | 112 |
|
---|
[874fec7f] | 113 | <screen role="root"><userinput>make install &&
|
---|
| 114 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &&
|
---|
[951fac10] | 115 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[ad426ac] | 116 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bf8ac01] | 117 | </sect2>
|
---|
[dc775a26] | 118 |
|
---|
[bf8ac01] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
[dc775a26] | 121 |
|
---|
[874fec7f] | 122 | <para><option>--disable-static</option>: This option stops it compiling and
|
---|
| 123 | installing a static version of
|
---|
| 124 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
| 125 |
|
---|
[9cf31e6] | 126 | <para><option>--with-ca-path=/etc/ssl/certs</option>: This option sets the
|
---|
[795e921] | 127 | directory to use as the path to the SSL certificates. If you've not
|
---|
[9cf31e6] | 128 | installed <xref linkend="openssl"/> or <xref linkend="gnutls"/> and
|
---|
| 129 | the <xref linkend="cacerts"/> you can remove this option.</para>
|
---|
| 130 |
|
---|
[2ca26748] | 131 | <para><option>--with-gssapi</option>:
|
---|
| 132 | This parameter adds <application>Kerberos 5</application> support to
|
---|
[bf8ac01] | 133 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
[dc775a26] | 134 |
|
---|
[b834dfc7] | 135 | <para><option>--with-libssh2</option>:
|
---|
| 136 | This parameter adds SSH2 protocol support to
|
---|
| 137 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
| 138 |
|
---|
[32a8ca3] | 139 | <para><option>--without-ssl --with-gnutls</option>:
|
---|
[2b8421c] | 140 | To build with <application>GnuTLS</application>
|
---|
| 141 | support instead of <application>OpenSSL</application> for SSL/TLS.</para>
|
---|
[32a8ca3] | 142 |
|
---|
[874fec7f] | 143 | <para><command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
|
---|
| 144 | \) -exec rm {} \;</command>: This command removes
|
---|
[479525ae] | 145 | <filename>Makefiles</filename> and man files from the documentation
|
---|
| 146 | directory that would otherwise be installed by the commands that
|
---|
| 147 | follow.</para>
|
---|
[bf8ac01] | 148 | </sect2>
|
---|
[dc775a26] | 149 |
|
---|
[bf8ac01] | 150 | <sect2 role="content">
|
---|
| 151 | <title>Contents</title>
|
---|
[dc775a26] | 152 |
|
---|
[bf8ac01] | 153 | <segmentedlist>
|
---|
| 154 | <segtitle>Installed Programs</segtitle>
|
---|
| 155 | <segtitle>Installed Library</segtitle>
|
---|
| 156 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 157 |
|
---|
[bf8ac01] | 158 | <seglistitem>
|
---|
| 159 | <seg>curl and curl-config</seg>
|
---|
[874fec7f] | 160 | <seg>libcurl.so</seg>
|
---|
| 161 | <seg>/usr/include/curl and /usr/share/doc/curl-&curl-version;</seg>
|
---|
[bf8ac01] | 162 | </seglistitem>
|
---|
| 163 | </segmentedlist>
|
---|
[dc775a26] | 164 |
|
---|
[bf8ac01] | 165 | <variablelist>
|
---|
| 166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 167 | <?dbfo list-presentation="list"?>
|
---|
| 168 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 169 |
|
---|
[bf8ac01] | 170 | <varlistentry id="curl-prog">
|
---|
| 171 | <term><command>curl</command></term>
|
---|
| 172 | <listitem>
|
---|
[32a8ca3] | 173 | <para>is a command line tool for transferring files with URL syntax.
|
---|
| 174 | </para>
|
---|
[bf8ac01] | 175 | <indexterm zone="curl curl-prog">
|
---|
| 176 | <primary sortas="b-curl">curl</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
[dc775a26] | 180 |
|
---|
[bf8ac01] | 181 | <varlistentry id="curl-config">
|
---|
| 182 | <term><command>curl-config</command></term>
|
---|
| 183 | <listitem>
|
---|
[2ca26748] | 184 | <para>prints information about the last compile, like libraries
|
---|
[bf8ac01] | 185 | linked to and prefix setting.</para>
|
---|
| 186 | <indexterm zone="curl curl-config">
|
---|
| 187 | <primary sortas="b-curl-config">curl-config</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
[dc775a26] | 191 |
|
---|
[bf8ac01] | 192 | <varlistentry id="libcurl">
|
---|
[874fec7f] | 193 | <term><filename class="libraryfile">libcurl.so</filename></term>
|
---|
[bf8ac01] | 194 | <listitem>
|
---|
[2ca26748] | 195 | <para>provides the API functions required by
|
---|
[bf8ac01] | 196 | <command>curl</command> and other programs.</para>
|
---|
| 197 | <indexterm zone="curl libcurl">
|
---|
[874fec7f] | 198 | <primary sortas="c-libcurl">libcurl.so</primary>
|
---|
[bf8ac01] | 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 | </variablelist>
|
---|
| 203 | </sect2>
|
---|
[f45b1953] | 204 | </sect1>
|
---|