From 4adb3063793e551b8615f1e5ec97b120df8b0cc0 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Sat, 7 Aug 2004 00:06:16 +0000 Subject: [PATCH] - Add 65 constants. Document 40 new CURLOPT settings. Fixes #27202. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165580 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/curl/constants.xml | 1424 +++++++++++++++++++--- reference/curl/functions/curl-setopt.xml | 359 +++++- 2 files changed, 1636 insertions(+), 147 deletions(-) diff --git a/reference/curl/constants.xml b/reference/curl/constants.xml index 634a065849..76b21f8c17 100644 --- a/reference/curl/constants.xml +++ b/reference/curl/constants.xml @@ -1,12 +1,12 @@ - +
&reftitle.constants; &extension.constants; - CURLOPT_PORT + CURLOPT_DNS_USE_GLOBAL_CACHE (integer) @@ -15,9 +15,11 @@ + + - CURLOPT_FILE + CURLOPT_DNS_CACHE_TIMEOUT (integer) @@ -26,9 +28,11 @@ + + - CURLOPT_INFILE + CURLOPT_PORT (integer) @@ -37,9 +41,11 @@ + + - CURLOPT_INFILESIZE + CURLOPT_FILE (integer) @@ -48,9 +54,12 @@ + + + - CURLOPT_PROXY + CURLOPT_INFILE (integer) @@ -70,9 +82,11 @@ + + - CURLOPT_VERBOSE + CURLOPT_INFILESIZE (integer) @@ -81,9 +95,11 @@ + + - CURLOPT_HEADER + CURLOPT_URL (integer) @@ -92,9 +108,11 @@ + + - CURLOPT_HTTPHEADER + CURLOPT_PROXY (integer) @@ -103,9 +121,11 @@ + + - CURLOPT_NOPROGRESS + CURLOPT_VERBOSE (integer) @@ -114,9 +134,11 @@ + + - CURLOPT_NOBODY + CURLOPT_HEADER (integer) @@ -125,9 +147,11 @@ + + - CURLOPT_FAILONERROR + CURLOPT_HTTPHEADER (integer) @@ -136,9 +160,11 @@ + + - CURLOPT_UPLOAD + CURLOPT_NOPROGRESS (integer) @@ -147,9 +173,11 @@ + + - CURLOPT_POST + CURLOPT_NOBODY (integer) @@ -158,9 +186,11 @@ + + - CURLOPT_FTPLISTONLY + CURLOPT_FAILONERROR (integer) @@ -169,9 +199,11 @@ + + - CURLOPT_FTPAPPEND + CURLOPT_UPLOAD (integer) @@ -180,9 +212,11 @@ + + - CURLOPT_NETRC + CURLOPT_POST (integer) @@ -191,9 +225,11 @@ + + - CURLOPT_FOLLOWLOCATION + CURLOPT_FTPLISTONLY (integer) @@ -202,9 +238,11 @@ + + - CURLOPT_FTPASCII + CURLOPT_FTPAPPEND (integer) @@ -213,9 +251,11 @@ + + - CURLOPT_PUT + CURLOPT_NETRC (integer) @@ -224,9 +264,11 @@ + + - CURLOPT_MUTE + CURLOPT_FOLLOWLOCATION (integer) @@ -235,9 +277,11 @@ + + - CURLOPT_USERPWD + CURLOPT_FTPASCII (integer) @@ -246,9 +290,11 @@ + + - CURLOPT_PROXYUSERPWD + CURLOPT_PUT (integer) @@ -257,9 +303,11 @@ + + - CURLOPT_RANGE + CURLOPT_MUTE (integer) @@ -268,9 +316,11 @@ + + - CURLOPT_TIMEOUT + CURLOPT_USERPWD (integer) @@ -279,9 +329,11 @@ + + - CURLOPT_POSTFIELDS + CURLOPT_PROXYUSERPWD (integer) @@ -290,9 +342,11 @@ + + - CURLOPT_REFERER + CURLOPT_RANGE (integer) @@ -301,9 +355,11 @@ + + - CURLOPT_USERAGENT + CURLOPT_TIMEOUT (integer) @@ -312,9 +368,11 @@ + + - CURLOPT_FTPPORT + CURLOPT_POSTFIELDS (integer) @@ -323,9 +381,11 @@ + + - CURLOPT_LOW_SPEED_LIMIT + CURLOPT_REFERER (integer) @@ -334,9 +394,11 @@ + + - CURLOPT_LOW_SPEED_TIME + CURLOPT_USERAGENT (integer) @@ -345,9 +407,11 @@ + + - CURLOPT_RESUME_FROM + CURLOPT_FTPPORT (integer) @@ -356,9 +420,11 @@ + + - CURLOPT_COOKIE + CURLOPT_FTP_USE_EPSV (integer) @@ -367,9 +433,11 @@ + + - CURLOPT_SSLCERT + CURLOPT_LOW_SPEED_LIMIT (integer) @@ -378,9 +446,11 @@ + + - CURLOPT_SSLCERTPASSWD + CURLOPT_LOW_SPEED_TIME (integer) @@ -389,9 +459,11 @@ + + - CURLOPT_WRITEHEADER + CURLOPT_RESUME_FROM (integer) @@ -400,9 +472,11 @@ + + - CURLOPT_SSL_VERIFYHOST + CURLOPT_COOKIE (integer) @@ -411,9 +485,11 @@ + + - CURLOPT_COOKIEFILE + CURLOPT_SSLCERT (integer) @@ -422,9 +498,11 @@ + + - CURLOPT_SSLVERSION + CURLOPT_SSLCERTPASSWD (integer) @@ -433,9 +511,11 @@ + + - CURLOPT_TIMECONDITION + CURLOPT_WRITEHEADER (integer) @@ -444,9 +524,11 @@ + + - CURLOPT_TIMEVALUE + CURLOPT_SSL_VERIFYHOST (integer) @@ -455,9 +537,11 @@ + + - CURLOPT_CUSTOMREQUEST + CURLOPT_COOKIEFILE (integer) @@ -466,9 +550,11 @@ + + - CURLOPT_STDERR + CURLOPT_SSLVERSION (integer) @@ -477,9 +563,11 @@ + + - CURLOPT_TRANSFERTEXT + CURLOPT_TIMECONDITION (integer) @@ -488,9 +576,11 @@ + + - CURLOPT_RETURNTRANSFER + CURLOPT_TIMEVALUE (integer) @@ -499,9 +589,11 @@ + + - CURLOPT_QUOTE + CURLOPT_CUSTOMREQUEST (integer) @@ -510,9 +602,11 @@ + + - CURLOPT_POSTQUOTE + CURLOPT_STDERR (integer) @@ -521,9 +615,11 @@ + + - CURLOPT_INTERFACE + CURLOPT_TRANSFERTEXT (integer) @@ -532,9 +628,11 @@ + + - CURLOPT_KRB4LEVEL + CURLOPT_RETURNTRANSFER (integer) @@ -543,9 +641,11 @@ + + - CURLOPT_HTTPPROXYTUNNEL + CURLOPT_QUOTE (integer) @@ -554,9 +654,11 @@ + + - CURLOPT_FILETIME + CURLOPT_POSTQUOTE (integer) @@ -565,9 +667,11 @@ + + - CURLOPT_WRITEFUNCTION + CURLOPT_INTERFACE (integer) @@ -576,9 +680,11 @@ + + - CURLOPT_READFUNCTION + CURLOPT_KRB4LEVEL (integer) @@ -587,9 +693,11 @@ + + - CURLOPT_PASSWDFUNCTION + CURLOPT_HTTPPROXYTUNNEL (integer) @@ -598,9 +706,11 @@ + + - CURLOPT_HEADERFUNCTION + CURLOPT_FILETIME (integer) @@ -609,9 +719,11 @@ + + - CURLOPT_MAXREDIRS + CURLOPT_WRITEFUNCTION (integer) @@ -620,9 +732,11 @@ + + - CURLOPT_MAXCONNECTS + CURLOPT_READFUNCTION (integer) @@ -631,9 +745,11 @@ + + - CURLOPT_CLOSEPOLICY + CURLOPT_PASSWDFUNCTION (integer) @@ -642,9 +758,11 @@ + + - CURLOPT_FRESH_CONNECT + CURLOPT_HEADERFUNCTION (integer) @@ -653,9 +771,11 @@ + + - CURLOPT_FORBID_REUSE + CURLOPT_MAXREDIRS (integer) @@ -664,9 +784,11 @@ + + - CURLOPT_RANDOM_FILE + CURLOPT_MAXCONNECTS (integer) @@ -675,9 +797,11 @@ + + - CURLOPT_EGDSOCKET + CURLOPT_CLOSEPOLICY (integer) @@ -686,9 +810,11 @@ + + - CURLOPT_CONNECTTIMEOUT + CURLOPT_FRESH_CONNECT (integer) @@ -697,9 +823,11 @@ + + - CURLOPT_SSL_VERIFYPEER + CURLOPT_FORBID_REUSE (integer) @@ -708,9 +836,11 @@ + + - CURLOPT_CAINFO + CURLOPT_RANDOM_FILE (integer) @@ -719,9 +849,11 @@ + + - CURLOPT_COOKIEJAR + CURLOPT_EGDSOCKET (integer) @@ -730,9 +862,11 @@ + + - CURLOPT_SSL_CIPHER_LIST + CURLOPT_CONNECTTIMEOUT (integer) @@ -741,9 +875,11 @@ + + - CURLOPT_BINARYTRANSFER + CURLOPT_SSL_VERIFYPEER (integer) @@ -752,9 +888,11 @@ + + - CURLCLOSEPOLICY_LEAST_RECENTLY_USED + CURLOPT_CAINFO (integer) @@ -763,9 +901,11 @@ + + - CURLCLOSEPOLICY_LEAST_TRAFFIC + CURLOPT_CAPATH (integer) @@ -774,9 +914,11 @@ + + - CURLCLOSEPOLICY_SLOWEST + CURLOPT_COOKIEJAR (integer) @@ -785,9 +927,11 @@ + + - CURLCLOSEPOLICY_CALLBACK + CURLOPT_SSL_CIPHER_LIST (integer) @@ -796,9 +940,11 @@ + + - CURLCLOSEPOLICY_OLDEST + CURLOPT_BINARYTRANSFER (integer) @@ -807,9 +953,11 @@ + + - CURLINFO_EFFECTIVE_URL + CURLOPT_NOSIGNAL (integer) @@ -818,9 +966,11 @@ + + - CURLINFO_HTTP_CODE + CURLOPT_PROXYTYPE (integer) @@ -829,9 +979,11 @@ + + - CURLINFO_HEADER_SIZE + CURLOPT_BUFFERSIZE (integer) @@ -840,9 +992,11 @@ + + - CURLINFO_REQUEST_SIZE + CURLOPT_HTTPGET (integer) @@ -851,9 +1005,11 @@ + + - CURLINFO_TOTAL_TIME + CURLOPT_HTTP_VERSION (integer) @@ -862,9 +1018,11 @@ + + - CURLINFO_NAMELOOKUP_TIME + CURLOPT_SSLKEY (integer) @@ -873,9 +1031,11 @@ + + - CURLINFO_CONNECT_TIME + CURLOPT_SSLKEYTYPE (integer) @@ -884,9 +1044,11 @@ + + - CURLINFO_PRETRANSFER_TIME + CURLOPT_SSLKEYPASSWD (integer) @@ -895,9 +1057,11 @@ + + - CURLINFO_SIZE_UPLOAD + CURLOPT_SSLENGINE (integer) @@ -906,9 +1070,11 @@ + + - CURLINFO_SIZE_DOWNLOAD + CURLOPT_SSLENGINE_DEFAULT (integer) @@ -917,9 +1083,11 @@ + + - CURLINFO_SPEED_DOWNLOAD + CURLOPT_SSLCERTTYPE (integer) @@ -928,9 +1096,11 @@ + + - CURLINFO_SPEED_UPLOAD + CURLOPT_CRLF (integer) @@ -939,9 +1109,11 @@ + + - CURLINFO_FILETIME + CURLOPT_ENCODING (integer) @@ -950,9 +1122,11 @@ + + - CURLINFO_SSL_VERIFYRESULT + CURLOPT_PROXYPORT (integer) @@ -961,9 +1135,11 @@ + + - CURLINFO_CONTENT_LENGTH_DOWNLOAD + CURLOPT_UNRESTRICTED_AUTH (integer) @@ -972,9 +1148,11 @@ + + - CURLINFO_CONTENT_LENGTH_UPLOAD + CURLOPT_FTP_USE_EPRT (integer) @@ -983,9 +1161,11 @@ + + - CURLE_OK + CURLOPT_HTTP200ALIASES (integer) @@ -994,9 +1174,11 @@ + + - CURLE_UNSUPPORTED_PROTOCOL + CURLOPT_HTTPAUTH (integer) @@ -1005,9 +1187,11 @@ + + - CURLE_FAILED_INIT + CURLAUTH_BASIC (integer) @@ -1016,9 +1200,11 @@ + + - CURLE_URL_MALFORMAT + CURLAUTH_DIGEST (integer) @@ -1027,9 +1213,11 @@ + + - CURLE_URL_MALFORMAT_USER + CURLAUTH_GSSNEGOTIATE (integer) @@ -1038,9 +1226,11 @@ + + - CURLE_COULDNT_RESOLVE_PROXY + CURLAUTH_NTLM (integer) @@ -1049,9 +1239,11 @@ + + - CURLE_COULDNT_RESOLVE_HOST + CURLAUTH_ANY (integer) @@ -1060,9 +1252,11 @@ + + - CURLE_COULDNT_CONNECT + CURLAUTH_ANYSAFE (integer) @@ -1071,9 +1265,11 @@ + + - CURLE_FTP_WEIRD_SERVER_REPLY + CURLCLOSEPOLICY_LEAST_RECENTLY_USED (integer) @@ -1082,9 +1278,11 @@ + + - CURLE_FTP_ACCESS_DENIED + CURLCLOSEPOLICY_LEAST_TRAFFIC (integer) @@ -1093,9 +1291,11 @@ + + - CURLE_FTP_USER_PASSWORD_INCORRECT + CURLCLOSEPOLICY_SLOWEST (integer) @@ -1104,9 +1304,11 @@ + + - CURLE_FTP_WEIRD_PASS_REPLY + CURLCLOSEPOLICY_CALLBACK (integer) @@ -1115,9 +1317,11 @@ + + - CURLE_FTP_WEIRD_USER_REPLY + CURLCLOSEPOLICY_OLDEST (integer) @@ -1126,9 +1330,11 @@ + + - CURLE_FTP_WEIRD_PASV_REPLY + CURLINFO_EFFECTIVE_URL (integer) @@ -1137,9 +1343,11 @@ + + - CURLE_FTP_WEIRD_227_FORMAT + CURLINFO_HTTP_CODE (integer) @@ -1148,9 +1356,11 @@ + + - CURLE_FTP_CANT_GET_HOST + CURLINFO_HEADER_SIZE (integer) @@ -1159,9 +1369,11 @@ + + - CURLE_FTP_CANT_RECONNECT + CURLINFO_REQUEST_SIZE (integer) @@ -1170,9 +1382,11 @@ + + - CURLE_FTP_COULDNT_SET_BINARY + CURLINFO_TOTAL_TIME (integer) @@ -1181,9 +1395,11 @@ + + - CURLE_PARTIAL_FILE + CURLINFO_NAMELOOKUP_TIME (integer) @@ -1192,9 +1408,11 @@ + + - CURLE_FTP_COULDNT_RETR_FILE + CURLINFO_CONNECT_TIME (integer) @@ -1203,9 +1421,11 @@ + + - CURLE_FTP_WRITE_ERROR + CURLINFO_PRETRANSFER_TIME (integer) @@ -1214,9 +1434,11 @@ + + - CURLE_FTP_QUOTE_ERROR + CURLINFO_SIZE_UPLOAD (integer) @@ -1225,9 +1447,11 @@ + + - CURLE_HTTP_NOT_FOUND + CURLINFO_SIZE_DOWNLOAD (integer) @@ -1236,9 +1460,11 @@ + + - CURLE_WRITE_ERROR + CURLINFO_SPEED_DOWNLOAD (integer) @@ -1247,9 +1473,11 @@ + + - CURLE_MALFORMAT_USER + CURLINFO_SPEED_UPLOAD (integer) @@ -1258,9 +1486,11 @@ + + - CURLE_FTP_COULDNT_STOR_FILE + CURLINFO_FILETIME (integer) @@ -1269,9 +1499,11 @@ + + - CURLE_READ_ERROR + CURLINFO_SSL_VERIFYRESULT (integer) @@ -1280,9 +1512,11 @@ + + - CURLE_OUT_OF_MEMORY + CURLINFO_CONTENT_LENGTH_DOWNLOAD (integer) @@ -1291,9 +1525,11 @@ + + - CURLE_OPERATION_TIMEOUTED + CURLINFO_CONTENT_LENGTH_UPLOAD (integer) @@ -1302,9 +1538,11 @@ + + - CURLE_FTP_COULDNT_SET_ASCII + CURLINFO_STARTTRANSFER_TIME (integer) @@ -1313,9 +1551,11 @@ + + - CURLE_FTP_PORT_FAILED + CURLINFO_CONTENT_TYPE (integer) @@ -1324,9 +1564,11 @@ + + - CURLE_FTP_COULDNT_USE_REST + CURLINFO_REDIRECT_TIME (integer) @@ -1335,9 +1577,11 @@ + + - CURLE_FTP_COULDNT_GET_SIZE + CURLINFO_REDIRECT_COUNT (integer) @@ -1346,9 +1590,11 @@ + + - CURLE_HTTP_RANGE_ERROR + CURL_VERSION_IPV6 (integer) @@ -1357,9 +1603,11 @@ + + - CURLE_HTTP_POST_ERROR + CURL_VERSION_KERBEROS4 (integer) @@ -1368,9 +1616,11 @@ + + - CURLE_SSL_CONNECT_ERROR + CURL_VERSION_SSL (integer) @@ -1379,9 +1629,11 @@ + + - CURLE_FTP_BAD_DOWNLOAD_RESUME + CURL_VERSION_LIBZ (integer) @@ -1390,9 +1642,11 @@ + + - CURLE_FILE_COULDNT_READ_FILE + CURLVERSION_NOW (integer) @@ -1401,9 +1655,11 @@ + + - CURLE_LDAP_CANNOT_BIND + CURLE_OK (integer) @@ -1412,9 +1668,11 @@ + + - CURLE_LDAP_SEARCH_FAILED + CURLE_UNSUPPORTED_PROTOCOL (integer) @@ -1423,9 +1681,11 @@ + + - CURLE_LIBRARY_NOT_FOUND + CURLE_FAILED_INIT (integer) @@ -1434,9 +1694,11 @@ + + - CURLE_FUNCTION_NOT_FOUND + CURLE_URL_MALFORMAT (integer) @@ -1445,9 +1707,11 @@ + + - CURLE_ABORTED_BY_CALLBACK + CURLE_URL_MALFORMAT_USER (integer) @@ -1456,9 +1720,11 @@ + + - CURLE_BAD_FUNCTION_ARGUMENT + CURLE_COULDNT_RESOLVE_PROXY (integer) @@ -1467,9 +1733,11 @@ + + - CURLE_BAD_CALLING_ORDER + CURLE_COULDNT_RESOLVE_HOST (integer) @@ -1478,9 +1746,11 @@ + + - CURLE_HTTP_PORT_FAILED + CURLE_COULDNT_CONNECT (integer) @@ -1489,9 +1759,11 @@ + + - CURLE_BAD_PASSWORD_ENTERED + CURLE_FTP_WEIRD_SERVER_REPLY (integer) @@ -1500,9 +1772,11 @@ + + - CURLE_TOO_MANY_REDIRECTS + CURLE_FTP_ACCESS_DENIED (integer) @@ -1511,9 +1785,11 @@ + + - CURLE_UNKNOWN_TELNET_OPTION + CURLE_FTP_USER_PASSWORD_INCORRECT (integer) @@ -1522,9 +1798,11 @@ + + - CURLE_TELNET_OPTION_SYNTAX + CURLE_FTP_WEIRD_PASS_REPLY (integer) @@ -1533,9 +1811,11 @@ + + - CURLE_OBSOLETE + CURLE_FTP_WEIRD_USER_REPLY (integer) @@ -1544,9 +1824,869 @@ + + - CURLE_SSL_PEER_CERTIFICATE + CURLE_FTP_WEIRD_PASV_REPLY + (integer) + + + + + + + + + + + + CURLE_FTP_WEIRD_227_FORMAT + (integer) + + + + + + + + + + + + CURLE_FTP_CANT_GET_HOST + (integer) + + + + + + + + + + + + CURLE_FTP_CANT_RECONNECT + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_SET_BINARY + (integer) + + + + + + + + + + + + CURLE_PARTIAL_FILE + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_RETR_FILE + (integer) + + + + + + + + + + + + CURLE_FTP_WRITE_ERROR + (integer) + + + + + + + + + + + + CURLE_FTP_QUOTE_ERROR + (integer) + + + + + + + + + + + + CURLE_HTTP_NOT_FOUND + (integer) + + + + + + + + + + + + CURLE_WRITE_ERROR + (integer) + + + + + + + + + + + + CURLE_MALFORMAT_USER + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_STOR_FILE + (integer) + + + + + + + + + + + + CURLE_READ_ERROR + (integer) + + + + + + + + + + + + CURLE_OUT_OF_MEMORY + (integer) + + + + + + + + + + + + CURLE_OPERATION_TIMEOUTED + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_SET_ASCII + (integer) + + + + + + + + + + + + CURLE_FTP_PORT_FAILED + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_USE_REST + (integer) + + + + + + + + + + + + CURLE_FTP_COULDNT_GET_SIZE + (integer) + + + + + + + + + + + + CURLE_HTTP_RANGE_ERROR + (integer) + + + + + + + + + + + + CURLE_HTTP_POST_ERROR + (integer) + + + + + + + + + + + + CURLE_SSL_CONNECT_ERROR + (integer) + + + + + + + + + + + + CURLE_FTP_BAD_DOWNLOAD_RESUME + (integer) + + + + + + + + + + + + CURLE_FILE_COULDNT_READ_FILE + (integer) + + + + + + + + + + + + CURLE_LDAP_CANNOT_BIND + (integer) + + + + + + + + + + + + CURLE_LDAP_SEARCH_FAILED + (integer) + + + + + + + + + + + + CURLE_LIBRARY_NOT_FOUND + (integer) + + + + + + + + + + + + CURLE_FUNCTION_NOT_FOUND + (integer) + + + + + + + + + + + + CURLE_ABORTED_BY_CALLBACK + (integer) + + + + + + + + + + + + CURLE_BAD_FUNCTION_ARGUMENT + (integer) + + + + + + + + + + + + CURLE_BAD_CALLING_ORDER + (integer) + + + + + + + + + + + + CURLE_HTTP_PORT_FAILED + (integer) + + + + + + + + + + + + CURLE_BAD_PASSWORD_ENTERED + (integer) + + + + + + + + + + + + CURLE_TOO_MANY_REDIRECTS + (integer) + + + + + + + + + + + + CURLE_UNKNOWN_TELNET_OPTION + (integer) + + + + + + + + + + + + CURLE_TELNET_OPTION_SYNTAX + (integer) + + + + + + + + + + + + CURLE_OBSOLETE + (integer) + + + + + + + + + + + + CURLE_SSL_PEER_CERTIFICATE + (integer) + + + + + + + + + + + + CURLE_GOT_NOTHING + (integer) + + + + + + + + + + + + CURLE_SSL_ENGINE_NOTFOUND + (integer) + + + + + + + + + + + + CURLE_SSL_ENGINE_SETFAILED + (integer) + + + + + + + + + + + + CURLE_SEND_ERROR + (integer) + + + + + + + + + + + + CURLE_RECV_ERROR + (integer) + + + + + + + + + + + + CURLE_SHARE_IN_USE + (integer) + + + + + + + + + + + + CURLE_SSL_CERTPROBLEM + (integer) + + + + + + + + + + + + CURLE_SSL_CIPHER + (integer) + + + + + + + + + + + + CURLE_SSL_CACERT + (integer) + + + + + + + + + + + + CURLE_BAD_CONTENT_ENCODING + (integer) + + + + + + + + + + + + CURLE_LDAP_INVALID_URL + (integer) + + + + + + + + + + + + CURLE_FILESIZE_EXCEEDED + (integer) + + + + + + + + + + + + CURLE_FTP_SSL_FAILED + (integer) + + + + + + + + + + + + CURLPROXY_HTTP + (integer) + + + + + + + + + + + + CURLPROXY_SOCKS5 + (integer) + + + + + + + + + + + + CURL_NETRC_OPTIONAL + (integer) + + + + + + + + + + + + CURL_NETRC_IGNORED + (integer) + + + + + + + + + + + + CURL_NETRC_REQUIRED + (integer) + + + + + + + + + + + + CURL_HTTP_VERSION_NONE + (integer) + + + + + + + + + + + + CURL_HTTP_VERSION_1_0 + (integer) + + + + + + + + + + + + CURL_HTTP_VERSION_1_1 + (integer) + + + + + + + + + + + + CURLM_CALL_MULTI_PERFORM + (integer) + + + + + + + + + + + + CURLM_OK + (integer) + + + + + + + + + + + + CURLM_BAD_HANDLE + (integer) + + + + + + + + + + + + CURLM_BAD_EASY_HANDLE + (integer) + + + + + + + + + + + + CURLM_OUT_OF_MEMORY + (integer) + + + + + + + + + + + + CURLM_INTERNAL_ERROR + (integer) + + + + + + + + + + + + CURLMSG_DONE (integer) diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index 1195af2b59..111b2bf3f4 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -1,5 +1,5 @@ - + @@ -38,7 +38,8 @@ CURLOPT_VERBOSE: Set this option to a non-zero value if you want CURL to report everything that is - happening. + happening. Writes output to stderr, or the file specified + using CURLOPT_STDERR. @@ -227,11 +228,213 @@ - CURLOPT_RETURNTRANSFER: Pass a non-zero - value if you want CURL to directly return the transfer instead - of printing it out directly. + CURLOPT_RETURNTRANSFER: Set this option to a + non-zero value if you want CURL to directly return the transfer + instead of printing it out directly. + + + CURLOPT_NOSIGNAL: Set this option to a non-zero + value if you want CURL to ignore any CURL function that causes a + signal to be sent to the PHP process. This is turned on by default in + multi-threaded SAPIs so timeout options can still be used. Added + in CURL 7.10. + + + + + CURLOPT_DNS_USE_GLOBAL_CACHE: Set this option + to a non-zero value if you want CURL to use a global DNS cache. This + option is not thread-safe and is turned on by default. + + + + + CURLOPT_DNS_CACHE_TIMEOUT: Pass a long as a + parameter that is the amount of seconds CURL should keep DNS entries + in memory. This option is set to 120 (2 minutes) by default. + + + + + CURLOPT_PORT: Pass a long as a + parameter specifying the port number to connect to, instead of the + default for the protocol used. + + + + + CURLOPT_TRANSFERTEXT: Set this option to a + non-zero value if you want CURL to use ASCII mode for FTP transfers. + For LDAP, it retrieves data in plain text instead of HTML. On Windows + systems, stdout will not be set to binary mode. + + + + + CURLOPT_FTPASCII: An alias of + CURLOPT_TRANSFERTEXT. Use that instead. + + + + + CURLOPT_FTP_USE_EPSV: Set this option to a + non-zero value if you want CURL to first try an EPSV command for FTP + transfers before reverting back to PASV. Set this option to zero to + disable EPSV. + + + + + CURLOPT_HTTPPROXYTUNNEL: Set this option to a + non-zero value to tunnel through a given HTTP proxy. + + + + + CURLOPT_FILETIME: Set this option to a non-zero + value for CURL to attempt to retrieve the modification date of the + remote document. You can then retrieve this value using the + CURLINFO_FILETIME option with + curl_getinfo. + + + + + CURLOPT_MAXREDIRS: Pass a long as a value that + defines the maximum amount of HTTP redirections to follow. Use this + option alongside CURLOPT_FOLLOWLOCATION. + + + + + CURLOPT_MAXCONNECTS: Pass a long as a value that + defines the maximum amount of persistent connections that are allowed. + When the limit is reached, CURLOPT_CLOSEPOLICY + is used to figure out which connection to close. + + + + + CURLOPT_CLOSEPOLICY: Set this option to either + CURLCLOSEPOLICY_LEAST_RECENTLY_USED or + CURLCLOSEPOLICY_OLDEST. + There are three other CURLCLOSEPOLICY_ + constants, but CURL does not support them yet. + + + + + CURLOPT_FRESH_CONNECT: Set this option to a + non-zero value to force the use of a new connection instead of a + cached one. + + + + + CURLOPT_FORBID_REUSE: Set this option to a + non-zero value to force the connection to explicitly close when its + finished processing, and not be pooled for reuse. + + + + + CURLOPT_CONNECTTIMEOUT: Pass a long as a value + that defines the number of seconds to wait whilst trying to connect. + Use zero to wait indefinitely. + + + + + CURLOPT_BINARYTRANSFER: Set this option to a + non-zero value to return the raw output when + CURLOPT_RETURNTRANSFER is used. + + + + + CURLOPT_PROXYTYPE: Set this option to either + CURLPROXY_HTTP (default) or + CURLPROXY_SOCKS5. This was added in CURL 7.10. + + + + + CURLOPT_BUFFERSIZE: Pass a long as a value + that defines the size of the buffer to use for each read. There is no + guarantee this request will be fulfilled, however. This was added + in CURL 7.10. + + + + + CURLOPT_HTTPGET: Set this option to a non-zero + value to reset the HTTP request method to GET. Since GET is the + default, this is only necessary if the request method has been + changed. + + + + + CURLOPT_HTTP_VERSION: Set this option to + CURL_HTTP_VERSION_NONE (default, lets CURL + decide which version to use), + CURL_HTTP_VERSION_1_0 (forces HTTP/1.0), + or CURL_HTTP_VERSION_1_1 (forces HTTP/1.1). + + + + + CURLOPT_CRLF: Set this option to a non-zero + value if you want to convert Unix newlines to CRLF newlines on + transfers. + + + + + CURLOPT_PROXYPORT: Pass a long as a value + that defines the port number of the proxy to connect to. This port + number can also be set in CURLOPT_PROXY. + + + + + CURLOPT_UNRESTRICTED_AUTH: Set this option to + a non-zero value to keep sending the username and password when + following locations (using + CURLOPT_FOLLOWLOCATION), even when the + hostname has changed. + + + + + CURLOPT_FTP_USE_EPRT: Set this option to a + non-zero value to use EPRT (and LPRT) when doing active FTP downloads. + Use zero to disable EPRT and LPRT and use PORT only. + + + + + CURLOPT_HTTPAUTH: Pass a long as a value that + defines the HTTP authentication method(s) you wish to use. The options + are: CURLAUTH_BASIC, + CURLAUTH_DIGEST, + CURLAUTH_GSSNEGOTIATE, + CURLAUTH_NTLM, + CURLAUTH_ANY, and + CURLAUTH_ANYSAFE. + + + You can use the bitwise | (or) operator to combine + more than one method. If you do this, CURL will poll the server to see + what methods it supports and pick the best one. + CURLAUTH_ANY is an alias for + CURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM + and CURLAUTH_ANYSAFE is an alias for + CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. + + @@ -388,6 +591,106 @@ performed. + + + CURLOPT_RANDOM_FILE: Pass a string that + contains a filename to be used to seed the random number generator + for SSL. + + + + + CURLOPT_EGBSOCKET: Like + CURLOPT_RANDOM_FILE except you pass a string + that contains a filename to an Entropy Gathering Daemon socket. + + + + + CURLOPT_CAPATH: Pass a string that + contains a directory that holds multiple CA certificates. Use this + option alongside CURLOPT_SSL_VERIFYPEER. + + + + + CURLOPT_COOKIEJAR: Pass a string that + contains a filename to save all internal cookies to when the + connection closes. + + + + + CURLOPT_SSL_CIPHER_LIST: Pass a string that + contains a list of ciphers to use for SSL. For example, + RC4-SHA and TLSv1 are valid + cipher lists. + + + + + CURLOPT_SSLKEY: Pass a string that + contains the filename of your private SSL key. + + + + + CURLOPT_SSLKEYTYPE: Pass a string that + contains what key type your private SSL key is. Supported key types + are "PEM" (default), "DER", + and "ENG". + + + + + CURLOPT_SSLKEYPASSWD: Pass a string that + contains the secret password to use your private SSL key. + + + + Since this option contains a sensitive password, remember to keep + the PHP script it is contained within safe. + + + + + + CURLOPT_SSLENGINE: Pass a string that + contains the identifier for the crypto engine of your private key. + + + + + CURLOPT_SSLENGINE_DEFAULT: Pass a string that + contains the identifier for the crypto engine used for asymmetric + crypto operations. + + + + + CURLOPT_SSLCERTTYPE: Pass a string that + contains what format your certificate is in. Supported formats + are "PEM" (default), "DER", + and "ENG". This was added in CURL 7.9.3. + + + + + CURLOPT_ENCODING: Pass a string that + sets the contents of the Accept-Encoding: header, + and enables decoding of the response. Supported encodings are + "identity", "deflate", and + "gzip". If an empty string, "", + is passed, a header containing all supported encoding types is sent. + + + + + CURLOPT_HTTP200ALIASES: Pass an array of + strings that will be treated as valid HTTP 200 responses. This was + added in CURL 7.10.3. + + @@ -419,6 +722,52 @@ + + + The following options expect a string that is the name of a callback + function: + + + + CURLOPT_WRITEFUNCTION: Pass the name of a + callback function where the callback function takes two parameters. + The first is the CURL resource, and the second is a string with the + data to be written. Using this callback function, it becomes your + responsibility to write the data. Return the number of bytes written. + + + + + CURLOPT_READFUNCTION: Pass the name of a + callback function where the callback function takes two parameters. + The first is the CURL resource, and the second is a string with the + data to be read. Using this callback function, it becomes your + responsibility to read the data. Return the number of bytes read. + Return 0 to signal EOF. + + + + + CURLOPT_PASSWDFUNCTION: Pass the name of a + callback function where the callback function takes three parameters. + The first is the CURL resource, the second is a string containing a + password prompt, and the third is the maximum password length. Return + the string containing the password. + + + + + CURLOPT_HEADERFUNCTION: Pass the name of a + callback function where the callback function takes two parameters. + The first is the CURL resource, the second is a string with the header + data to be written. Using this callback function, it becomes your + responsibility to write the header data. Return the number of bytes + written. + + + + + Initializing a new CURL session and fetching a webpage