[bf8ac01] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[88494257] | 9 | <!ENTITY curl-md5sum "e3b130320d3704af375c097606f49c01">
|
---|
[582cdc09] | 10 | <!ENTITY curl-size "1.4 MB">
|
---|
| 11 | <!ENTITY curl-buildsize "25.5 MB">
|
---|
| 12 | <!ENTITY curl-time "0.4 SBU (additional 1.0 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 |
|
---|
[bf8ac01] | 23 | <title>CURL-&curl-version;</title>
|
---|
[dc775a26] | 24 |
|
---|
[bf8ac01] | 25 | <indexterm zone="curl">
|
---|
| 26 | <primary sortas="a-CURL">CURL</primary>
|
---|
| 27 | </indexterm>
|
---|
[dc775a26] | 28 |
|
---|
[bf8ac01] | 29 | <sect2 role="package">
|
---|
| 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 |
|
---|
[ef8b91c2] | 60 | <bridgehead renderas="sect3">CURL Dependencies</bridgehead>
|
---|
[dc775a26] | 61 |
|
---|
[bf8ac01] | 62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[2ca26748] | 63 | <para><xref linkend="pkgconfig"/>,
|
---|
[582cdc09] | 64 | <xref linkend="openssl"/> or
|
---|
| 65 | <ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink>,
|
---|
[2ca26748] | 66 | <xref linkend="openldap"/>,
|
---|
| 67 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
|
---|
| 68 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
| 69 | <ulink url="http://www.gnu.org/software/libidn/">Libidn</ulink>,
|
---|
| 70 | <ulink url="http://www.vintela.com/resources/topics/spnego/">SPNEGO</ulink> and
|
---|
[bf8ac01] | 71 | <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink></para>
|
---|
[dc775a26] | 72 |
|
---|
[0f0ee329] | 73 | <bridgehead renderas="sect4">Optional (for Running the Test Suite)</bridgehead>
|
---|
[2ca26748] | 74 | <para><xref linkend="stunnel"/> (for running HTTPS and FTPS tests) and
|
---|
| 75 | <ulink url="http://valgrind.kde.org/">Valgrind</ulink> (not used if building
|
---|
[bf8ac01] | 76 | the shared library)</para>
|
---|
[dc775a26] | 77 |
|
---|
[bf8ac01] | 78 | </sect2>
|
---|
[dc775a26] | 79 |
|
---|
[bf8ac01] | 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of CURL</title>
|
---|
[dc775a26] | 82 |
|
---|
[2ca26748] | 83 | <para>Install <application>cURL</application> by running the following
|
---|
[bf8ac01] | 84 | commands:</para>
|
---|
[dc775a26] | 85 |
|
---|
[bf8ac01] | 86 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 87 | make</userinput></screen>
|
---|
[dc775a26] | 88 |
|
---|
[1363324e] | 89 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[dc775a26] | 90 |
|
---|
[bf8ac01] | 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[dc775a26] | 92 |
|
---|
[bf8ac01] | 93 | <screen role='root'><userinput>make install &&
|
---|
[951fac10] | 94 | find docs -name "Makefile*" \
|
---|
[bf8ac01] | 95 | -o -name "*.1" \
|
---|
| 96 | -o -name "*.3" | xargs rm &&
|
---|
[951fac10] | 97 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[bf8ac01] | 98 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[dc775a26] | 99 |
|
---|
[bf8ac01] | 100 | </sect2>
|
---|
[dc775a26] | 101 |
|
---|
[bf8ac01] | 102 | <sect2 role="commands">
|
---|
| 103 | <title>Command Explanations</title>
|
---|
[dc775a26] | 104 |
|
---|
[2ca26748] | 105 | <para><option>--with-gssapi</option>:
|
---|
| 106 | This parameter adds <application>Kerberos 5</application> support to
|
---|
[bf8ac01] | 107 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
[dc775a26] | 108 |
|
---|
[bf8ac01] | 109 | </sect2>
|
---|
[dc775a26] | 110 |
|
---|
[bf8ac01] | 111 | <sect2 role="content">
|
---|
| 112 | <title>Contents</title>
|
---|
[dc775a26] | 113 |
|
---|
[bf8ac01] | 114 | <segmentedlist>
|
---|
| 115 | <segtitle>Installed Programs</segtitle>
|
---|
| 116 | <segtitle>Installed Library</segtitle>
|
---|
| 117 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 118 |
|
---|
[bf8ac01] | 119 | <seglistitem>
|
---|
| 120 | <seg>curl and curl-config</seg>
|
---|
| 121 | <seg>libcurl.[so,a]</seg>
|
---|
[2ca26748] | 122 | <seg>/usr/include/curl, /usr/share/curl
|
---|
[bf8ac01] | 123 | and /usr/share/doc/curl-&curl-version;</seg>
|
---|
| 124 | </seglistitem>
|
---|
| 125 | </segmentedlist>
|
---|
[dc775a26] | 126 |
|
---|
[bf8ac01] | 127 | <variablelist>
|
---|
| 128 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 129 | <?dbfo list-presentation="list"?>
|
---|
| 130 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 131 |
|
---|
[bf8ac01] | 132 | <varlistentry id="curl-prog">
|
---|
| 133 | <term><command>curl</command></term>
|
---|
| 134 | <listitem>
|
---|
[2ca26748] | 135 | <para>is a client that can get documents from or send documents to
|
---|
[bf8ac01] | 136 | any of the following protocols: HTTP, HTTPS (needs <xref
|
---|
[2ca26748] | 137 | linkend="openssl"/>), FTP, GOPHER, DICT, TELNET, LDAP (needs
|
---|
[bf8ac01] | 138 | <xref linkend="openldap"/> at run time) or FILE.</para>
|
---|
| 139 | <indexterm zone="curl curl-prog">
|
---|
| 140 | <primary sortas="b-curl">curl</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
[dc775a26] | 144 |
|
---|
[bf8ac01] | 145 | <varlistentry id="curl-config">
|
---|
| 146 | <term><command>curl-config</command></term>
|
---|
| 147 | <listitem>
|
---|
[2ca26748] | 148 | <para>prints information about the last compile, like libraries
|
---|
[bf8ac01] | 149 | linked to and prefix setting.</para>
|
---|
| 150 | <indexterm zone="curl curl-config">
|
---|
| 151 | <primary sortas="b-curl-config">curl-config</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
[dc775a26] | 155 |
|
---|
[bf8ac01] | 156 | <varlistentry id="libcurl">
|
---|
| 157 | <term><filename class='libraryfile'>libcurl.[so,a]</filename></term>
|
---|
| 158 | <listitem>
|
---|
[2ca26748] | 159 | <para>provides the API functions required by
|
---|
[bf8ac01] | 160 | <command>curl</command> and other programs.</para>
|
---|
| 161 | <indexterm zone="curl libcurl">
|
---|
| 162 | <primary sortas="c-libcurl">libcurl.[so,a]</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
[dc775a26] | 166 |
|
---|
[bf8ac01] | 167 | </variablelist>
|
---|
[dc775a26] | 168 |
|
---|
[bf8ac01] | 169 | </sect2>
|
---|
[dc775a26] | 170 |
|
---|
[f45b1953] | 171 | </sect1>
|
---|