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