Date: 07/26/00
- Next message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions classobj.xml"
- Previous message: Sterling Hughes: "[PHP-DOC] cvs: phpdoc /en/functions curl.xml"
- Next in thread: Sterling Hughes: "[PHP-DOC] cvs: phpdoc /en/functions curl.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sterling Tue Jul 25 22:23:24 2000 EDT
Modified files:
/phpdoc/en/functions curl.xml
Log:
Done (until I add new features:-).
Index: phpdoc/en/functions/curl.xml
diff -u phpdoc/en/functions/curl.xml:1.4 phpdoc/en/functions/curl.xml:1.5
--- phpdoc/en/functions/curl.xml:1.4 Tue Jul 25 16:56:34 2000
+++ phpdoc/en/functions/curl.xml Tue Jul 25 22:23:24 2000
@@ -290,41 +290,132 @@
<para>
The <parameter>value</parameter> parameter should be a string for the following
values of the <parameter>option</parameter> parameter:
- <itemizedlist>
- <listitem>
- <simpara>
- <parameter>CURLOPT_URL</parameter>: This is the URL that you want PHP to
- fetch. You can also set this option when initializing a session with the
- <function>curl_init</function> function.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <parameter>CURLOPT_USERPWD</parameter>: Pass a string formatted in the
- [username]:[password] manner, for PHP to use for the connection.
- connection.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <parameter>CURLOPT_PROXYUSERPWD</parameter>: Pass a string formatted in
- the [username]:[password] format for connection to the HTTP proxy.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <parameter>CURLOPT_RANGE</parameter>: Pass the specified range you want.
- It should be in the "X-Y" format, where X or Y may be left out. The HTTP
- transfers also support several intervals, seperated with commas as in
- X-Y,N-M.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <parameter>CURLOPT_POSTFIELDS</parameter>: Pass a string containing the
- full data to post in an HTTP "POST" operation.
- </simpara>
- </listitem>
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_URL</parameter>: This is the URL that you want PHP to
+ fetch. You can also set this option when initializing a session with the
+ <function>curl_init</function> function.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_USERPWD</parameter>: Pass a string formatted in the
+ [username]:[password] manner, for PHP to use for the connection.
+ connection.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_PROXYUSERPWD</parameter>: Pass a string formatted in
+ the [username]:[password] format for connection to the HTTP proxy.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_RANGE</parameter>: Pass the specified range you want.
+ It should be in the "X-Y" format, where X or Y may be left out. The HTTP
+ transfers also support several intervals, seperated with commas as in
+ X-Y,N-M.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_POSTFIELDS</parameter>: Pass a string containing the
+ full data to post in an HTTP "POST" operation.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_REFERER</parameter>: Pass a string containing the
+ "referer" header to be used in an HTTP request.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_USERAGENT</parameter>: Pass a string containing the
+ "user-agent" header to be used in an HTTP request.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_FTPPORT</parameter>: Pass a string containing the which
+ will be used to get the IP address to use for the ftp "PORT" instruction.
+ The POST instruction tells the remote server to connect to our specified
+ IP address. The string may be a plain IP address, a hostname, a network
+ interface name (under UNIX), or just a plain '-' to use the systems default
+ IP address.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_COOKIE</parameter>: Pass a string containing the
+ content of the cookie to be set in the HTTP header.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_SSLCERT</parameter>: Pass a string containing the
+ filename of PEM formatted certificate.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_SSLCERTPASSWD</parameter>: Pass a string containing
+ the password required to use the CURLOPT_SSLCERT certificate.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_COOKIEFILE</parameter>: Pass a string containing
+ the name of the file containing the cookiee data. The cookie file can be
+ in Netscape format, or just plain HTTP-style headers dumped into a file.
+ </simpara>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>CURLOPT_CUSTOMREQUEST</parameter>: Pass a string to be used
+ instead of GET or HEAD when doing an HTTP request. This is useful for
+ doing DELETE or another, more obscure, HTTP request.
+ <note>
+ <simpara>
+ Don't do this without making sure your server supports the command
+ first.
+ </simpara>
+ </note>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ The following options expect a file descriptor that is obtained by using the
+ <function>fopen</function> function:
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_FILE</parameter>: The file where the output of your
+ transfer should be placed, the default is STDOUT.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_INFILE</parameter>: The file where the input of your
+ transfer comes from.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_WRITEHEADER</parameter>: The file to write the header
+ part of the output into.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <parameter>CURLOPT_STDERR</parameter>: The file to write errors to instead
+ of stderr.
+ </simpara>
+ </listitem>
+ </itemizedlist>
</para>
</refsect1>
</refentry>
- Next message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions classobj.xml"
- Previous message: Sterling Hughes: "[PHP-DOC] cvs: phpdoc /en/functions curl.xml"
- Next in thread: Sterling Hughes: "[PHP-DOC] cvs: phpdoc /en/functions curl.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

