[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
vrana Fri Aug 17 21:00:52 2007 UTC Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: File posting (bug #37760) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.26 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.27 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.26 Wed Jun 20 22:24:17 2007 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Fri Aug 17 21:00:52 2007 @@ -1,5 +1,5 @@ - + http://docbook.org/ns/docbook";> curl_setopt @@ -782,6 +782,7 @@ CURLOPT_POSTFIELDS The full data to post in a HTTP "POST" operation. +To post a file, prepend a filename with @.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
daveFri Dec 9 16:52:02 2005 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: - Response code errors are >=400, not >300. Fixes #35616. http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.20&r2=1.21&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.20 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.21 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.20 Sun Jul 17 11:44:49 2005 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Fri Dec 9 16:51:59 2005 @@ -1,5 +1,5 @@ - + @@ -88,8 +88,8 @@ CURLOPT_FAILONERROR &true; to fail silently if the HTTP code returned - is greater than 300. The default behavior is to return the page - normally, ignoring the code. + is greater than or equal to 400. The default behavior is to return + the page normally, ignoring the code.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
vrana Wed Jul 6 17:04:54 2005 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: CURLOPT_ENCODING is available in PHP 4 too (spotted by Gaetano Giunta) http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.18&r2=1.19&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.18 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.19 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.18 Wed Apr 20 10:05:08 2005 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Wed Jul 6 17:04:54 2005 @@ -1,5 +1,5 @@ - + @@ -694,7 +694,7 @@ is set, a header containing all supported encoding types is sent. - Added in PHP 5.0.0. + Added in CURL 7.10.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
vrana Thu Apr 14 02:37:39 2005 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: Document constants version (bug #32695) http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.16&r2=1.17&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.16 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.17 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.16 Fri Nov 19 05:16:38 2004 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Thu Apr 14 02:37:37 2005 @@ -1,5 +1,5 @@ - + @@ -119,6 +119,7 @@ only. + Added in PHP 5.0.0. @@ -233,7 +234,7 @@ in multi-threaded SAPIs so timeout options can still be used. - Added in CURL 7.10. + Added in CURL 7.10 and PHP 5.0.0. @@ -304,6 +305,7 @@ hostname has changed. + Added in PHP 5.0.0. @@ -348,7 +350,7 @@ this request will be fulfilled, however. - Added in CURL 7.10. + Added in CURL 7.10 and PHP 5.0.0. @@ -390,7 +392,7 @@ CURLFTPAUTH_DEFAULT (let CURL decide). - Added in CURL 7.12.2 and available since PHP 5.1.0 + Added in CURL 7.12.2 and PHP 5.1.0. @@ -431,6 +433,7 @@ + Added in PHP 5.0.0. @@ -510,6 +513,7 @@ also be set in CURLOPT_PROXY. + Added in PHP 5.0.0. @@ -519,7 +523,7 @@ CURLPROXY_SOCKS5. - Added in CURL 7.10. + Added in CURL 7.10 and PHP 5.0.0. @@ -690,6 +694,7 @@ is set, a header containing all supported encoding types is sent. + Added in PHP 5.0.0. @@ -820,7 +825,7 @@ and "ENG". - Added in CURL 7.9.3. + Added in CURL 7.9.3 and PHP 5.0.0. @@ -927,7 +932,7 @@ responses and not as errors. - Added in CURL 7.10.3. + Added in CURL 7.10.3 and PHP 5.0.0.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml /en/reference/ircg/functions ircg-msg.xml
vrana Fri Nov 19 05:16:39 2004 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml /phpdoc/en/reference/ircg/functions ircg-msg.xml Log: Fix proto types http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.15&r2=1.16&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.15 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.16 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.15 Mon Nov 15 09:38:32 2004 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Fri Nov 19 05:16:38 2004 @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ boolcurl_setopt resourcech - integeroption + intoption mixedvalue http://cvs.php.net/diff.php/phpdoc/en/reference/ircg/functions/ircg-msg.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/ircg/functions/ircg-msg.xml diff -u phpdoc/en/reference/ircg/functions/ircg-msg.xml:1.4 phpdoc/en/reference/ircg/functions/ircg-msg.xml:1.5 --- phpdoc/en/reference/ircg/functions/ircg-msg.xml:1.4 Thu Feb 13 09:21:44 2003 +++ phpdoc/en/reference/ircg/functions/ircg-msg.xml Fri Nov 19 05:16:39 2004 @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ resourceconnection stringrecipient stringmessage - booleansuppress + boolsuppress ircg_msg will send the message to a channel
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
daveSun Aug 29 00:18:59 2004 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: - Typo. Option does the reverse. http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.13 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.14 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.13 Thu Aug 19 01:40:08 2004 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Sun Aug 29 00:18:58 2004 @@ -1,5 +1,5 @@ - + @@ -214,8 +214,7 @@ CURLOPT_NOPROGRESS - &true; to display a progress meter for CURL - transfers. + &true; to disable the progress meter for CURL transfers. PHP automatically sets this option to &true;, this should only be
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
daveThu Aug 19 01:40:08 2004 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: - Add constant tags where needed and replace erroneous parameter tags. http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.12 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.13 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.12 Wed Aug 18 23:24:29 2004 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Thu Aug 19 01:40:08 2004 @@ -1,5 +1,5 @@ - + @@ -29,21 +29,21 @@ Option Set value to - Changed + Notes - CURLOPT_BINARYTRANSFER + CURLOPT_BINARYTRANSFER &true; to return the raw output when - CURLOPT_RETURNTRANSFER is used. + CURLOPT_RETURNTRANSFER is used. - CURLOPT_CRLF + CURLOPT_CRLF &true; to convert Unix newlines to CRLF newlines on transfers. @@ -52,7 +52,7 @@ - CURLOPT_DNS_USE_GLOBAL_CACHE + CURLOPT_DNS_USE_GLOBAL_CACHE &true; to use a global DNS cache. This option is not thread-safe and is enabled by default. @@ -61,7 +61,7 @@ - CURLOPT_FAILONERROR + CURLOPT_FAILONERROR &true; to fail silently if the HTTP code returned is greater than 300. The default behavior is to return the page @@ -71,7 +71,7 @@ - CURLOPT_FILETIME + CURLOPT_FILETIME &true; to attempt to retrieve the modification date of the remote document. You can then retrieve this value using @@ -82,19 +82,19 @@ - CURLOPT_FOLLOWLOCATION + CURLOPT_FOLLOWLOCATION &true; to follow any "Location: " header that the server sends as part of the HTTP header (note this is recursive, PHP will follow as many "Location: " headers that it is sent, - unless CURLOPT_MAXREDIRS is set). + unless CURLOPT_MAXREDIRS is set). - CURLOPT_FORBID_REUSE + CURLOPT_FORBID_REUSE &true; to force the connection to explicitly close when it has finished processing, and not be pooled for reuse. @@ -103,7 +103,7 @@ - CURLOPT_FRESH_CONNECT + CURLOPT_FRESH_CONNECT &true; to force the use of a new connection instead of a cached one. @@ -112,7 +112,7 @@ - CURLOPT_FTP_USE_EPRT + CURLOPT_FTP_USE_EPRT &true; to use EPRT (and LPRT) when doing active FTP downloads. Use &false; to disable EPRT and LPRT and use PORT @@ -122,7 +122,7 @@ - CURLOPT_FTP_USE_EPSV + CURLOPT_FTP_USE_EPSV &true; to first try an EPSV command for FTP transfers before reverting back to PASV. Set to &false; @@ -132,7 +132,7 @@ - CURLOPT_FTPAPPEND + CURLOPT_FTPAPPEND &true; to append to the remote file instead of overwriting it. @@ -141,16 +141,16 @@ - CURLOPT_FTPASCII + CURLOPT_FTPASCII An alias of - CURLOPT_TRANSFERTEXT. Use that instead. + CURLOPT_TRANSFERTEXT. Use that instead. - CURLOPT_FTPLISTONLY + CURLOPT_FTPLISTONLY &true; to only list the names of an FTP directory. @@ -159,7 +159,7 @@ - CURLOPT_HEADER + CURLOPT_HEADER &true; to include the header in the output. @@ -167,7 +167,7 @@ - CURLOPT_HTTPGET + CURLOPT_HTTPGET &true; to reset the HTTP request method to GET. Since GET is the default, this is only necessary if the request @@ -177,7 +177,7 @@ - CURLOPT_HTTPPROXYTUNNEL + CURLOPT_HTTPPROXYTUNNEL &true; to tunnel through a given HTTP proxy. @@ -185,7 +185,7 @@ - CURLOPT_MUTE + CURLOPT_MUTE &true; to be completely silent with regards to the CURL functions. @@ -194,7 +194,7 @@ - CURLOPT_NETRC + CURLOPT_NETRC
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
daveFri Aug 6 20:53:26 2004 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: - Proto fix. http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.10 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.11 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.10 Fri Aug 6 20:06:16 2004 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Fri Aug 6 20:53:26 2004 @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ boolcurl_setopt resourcech - stringoption + integeroption mixedvalue
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
ali Sun Dec 14 06:59:58 2003 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: some more grammar Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.6 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.7 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.6 Sat Dec 13 15:49:01 2003 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Sun Dec 14 06:59:58 2003 @@ -1,5 +1,5 @@ - + @@ -361,12 +361,12 @@ CURLOPT_KRB4LEVEL: Pass the KRB4 (Kerberos -4) security level. Anyone of the following strings (in -order from least powerful, to most powerful): 'clear', 'safe', +4) security level. Any of the following values (in +order from least to most powerful) are valid: 'clear', 'safe', 'confidential', 'private'. If the string does not match one of -these, then 'private' is used. If you set this to NULL, -this disables KRB4 security. KRB4 security only works with FTP -transactions currently. +these, then 'private' is used. Setting this Option to +NULL, will disable KRB4 security. Currently KRB4 +security only works with FTP transactions.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
ali Sat Dec 13 15:49:01 2003 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: - added - changed TIMECONDITION to TIMEVALUE once Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.5 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.6 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.5 Thu Aug 21 20:27:34 2003 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Sat Dec 13 15:49:01 2003 @@ -1,5 +1,5 @@ - + @@ -125,7 +125,8 @@ CURLOPT_PUT: Set this option to a non-zero value to HTTP PUT a file. The file to PUT must be set with -the CURLOPT_INFILE and CURLOPT_INFILESIZE. +the CURLOPT_INFILE and +CURLOPT_INFILESIZE. @@ -147,15 +148,16 @@ CURLOPT_LOW_SPEED_LIMIT: Pass a long as a parameter that contains the transfer speed in bytes per second that the transfer should be below during -CURLOPT_LOW_SPEED_TIME seconds for PHP to consider it too slow -and abort. +CURLOPT_LOW_SPEED_TIME seconds for PHP to +consider too slow and abort. CURLOPT_LOW_SPEED_TIME: Pass a long as a parameter that contains the time in seconds that the -transfer should be below the CURLOPT_LOW_SPEED_LIMIT for PHP +transfer should be below the +CURLOPT_LOW_SPEED_LIMIT for PHP to consider it too slow and abort. @@ -170,8 +172,8 @@ CURLOPT_CAINFO: Pass a filename of a file holding one or more certificates to verify the peer with. This only -makes sense when used in combination with the -CURLOPT_SSL_VERIFYPEER option. +makes sense when used in combination with the +CURLOPT_SSL_VERIFYPEER option. @@ -208,7 +210,8 @@ CURLOPT_TIMECONDITION: Pass a long as a -parameter that defines how the CURLOPT_TIMEVALUE is treated. +parameter that defines how the +CURLOPT_TIMEVALUE is treated. You can set this parameter to TIMECOND_IFMODSINCE or TIMECOND_ISUNMODSINCE. This is a HTTP-only feature. @@ -217,7 +220,8 @@ CURLOPT_TIMEVALUE: Pass a long as a parameter that is the time in seconds since January 1st, 1970. -The time will be used as specified by the CURLOPT_TIMEVALUE +The time will be used as specified by the +CURLOPT_TIMECONDITION option, or by default the TIMECOND_IFMODSINCE will be used. @@ -311,8 +315,8 @@ CURLOPT_SSLCERTPASSWD: Pass a string -containing the password required to use the CURLOPT_SSLCERT -certificate. +containing the password required to use the +CURLOPT_SSLCERT certificate.
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
sniper Thu Aug 21 20:27:34 2003 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: Fix typo Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.4 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.5 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.4 Mon Jun 9 23:58:46 2003 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Thu Aug 21 20:27:34 2003 @@ -1,5 +1,5 @@ - + @@ -176,7 +176,7 @@ -CURL_SSL_VERIFYPEER: Pass a long that is set +CURLOPT_SSL_VERIFYPEER: Pass a long that is set to a zero value to stop curl from verifying the peer's certificate (curl 7.10 starting setting this option to &true; by default). Alternate certificates to verify against can be specified with the
[PHP-DOC] cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
philip Mon Jun 9 23:58:46 2003 EDT Modified files: /phpdoc/en/reference/curl/functions curl-setopt.xml Log: Document CURLOPT_CAINFO and CURLOPT_SSL_VERIFYPEER as requested in bug #23895 # Basically just copied from: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html Index: phpdoc/en/reference/curl/functions/curl-setopt.xml diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.3 phpdoc/en/reference/curl/functions/curl-setopt.xml:1.4 --- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.3 Sat Jun 15 04:41:36 2002 +++ phpdoc/en/reference/curl/functions/curl-setopt.xml Mon Jun 9 23:58:46 2003 @@ -1,5 +1,5 @@ - + @@ -164,6 +164,28 @@ CURLOPT_RESUME_FROM: Pass a long as a parameter that contains the offset, in bytes, that you want the transfer to start from. + + + + +CURLOPT_CAINFO: Pass a filename of a file +holding one or more certificates to verify the peer with. This only +makes sense when used in combination with the +CURLOPT_SSL_VERIFYPEER option. + + + + +CURL_SSL_VERIFYPEER: Pass a long that is set +to a zero value to stop curl from verifying the peer's certificate +(curl 7.10 starting setting this option to &true; by default). +Alternate certificates to verify against can be specified with the +CURLOPT_CAINFO option (added in curl 7.9.8) +or a certificate directory can be specified with the +CURLOPT_CAPATH option. As of curl 7.10, curl installs a +default bundle. CURLOPT_SSL_VERIFYHOST may +also need to be set to 1 or 0 if CURLOPT_SSL_VERIFYPEER + is disabled (it defaults to 2). -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php