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