Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created January 24, 2013 19:43
Show Gist options
  • Save bayleedev/4626922 to your computer and use it in GitHub Desktop.
Save bayleedev/4626922 to your computer and use it in GitHub Desktop.
CURL Options by output number
CURLOPT_AUTOREFERER..............58
CURLOPT_BINARYTRANSFER...........19914
CURLOPT_RETURNTRANSFER...........19913
CURLOPT_COOKIESESSION............96
CURLOPT_CERTINFO.................172
CURLOPT_VERBOSE..................41
CURLOPT_CRLF.....................27
CURLOPT_DNS_USE_GLOBAL_CACHE.....91
CURLOPT_FAILONERROR..............45
CURLOPT_FILETIME.................69
CURLOPT_FOLLOWLOCATION...........52
CURLOPT_MAXREDIRS................68
CURLOPT_FORBID_REUSE.............75
CURLOPT_FRESH_CONNECT............74
CURLOPT_FTP_USE_EPRT.............106
CURLOPT_FTP_USE_EPSV.............85
CURLOPT_FTP_CREATE_MISSING_DIRS..110
CURLOPT_FTPAPPEND................50
CURLOPT_FTPASCII.................CURLOPT_FTPASCII
CURLOPT_TRANSFERTEXT.............53
CURLOPT_FTPLISTONLY..............48
CURLOPT_HEADER...................42
CURLOPT_HTTPGET..................80
CURLOPT_HTTPPROXYTUNNEL..........61
CURLOPT_MUTE.....................CURLOPT_MUTE
CURLOPT_NETRC....................51
CURLOPT_NOBODY...................44
CURLOPT_NOPROGRESS...............43
CURLOPT_NOSIGNAL.................99
CURLOPT_POST.....................47
CURLOPT_PUT......................54
CURLOPT_INFILE...................10009
CURLOPT_INFILESIZE...............14
CURLOPT_SSL_VERIFYPEER...........64
CURLOPT_CAINFO...................10065
CURLOPT_CAPATH...................10097
CURLOPT_UNRESTRICTED_AUTH........105
CURLOPT_UPLOAD...................46
CURLOPT_STDERR...................10037
CURLOPT_BUFFERSIZE...............98
CURLOPT_CLOSEPOLICY..............72
CURLOPT_CONNECTTIMEOUT...........78
CURLOPT_CONNECTTIMEOUT_MS........156
CURLOPT_DNS_CACHE_TIMEOUT........92
CURLOPT_FTPSSLAUTH...............129
CURLOPT_HTTP_VERSION.............84
CURLOPT_HTTPAUTH.................107
CURLOPT_READFUNCTION.............20012
CURLOPT_LOW_SPEED_LIMIT..........19
CURLOPT_LOW_SPEED_TIME...........20
CURLOPT_MAXCONNECTS..............71
CURLOPT_PORT.....................3
CURLOPT_PROTOCOLS................181
CURLOPT_REDIR_PROTOCOLS..........182
CURLOPT_PROXYAUTH................111
CURLOPT_PROXYPORT................59
CURLOPT_PROXY....................10004
CURLOPT_PROXYTYPE................101
CURLOPT_RESUME_FROM..............21
CURLOPT_SSL_VERIFYHOST...........81
CURLOPT_SSLVERSION...............32
CURLOPT_TIMECONDITION............33
CURLOPT_TIMEVALUE................34
CURLOPT_TIMEOUT..................13
CURLOPT_TIMEOUT_MS...............155
CURLOPT_MAX_RECV_SPEED_LARGE.....CURLOPT_MAX_RECV_SPEED_LARGE
CURLOPT_MAX_SEND_SPEED_LARGE.....CURLOPT_MAX_SEND_SPEED_LARGE
CURLOPT_SSH_AUTH_TYPES...........151
CURLOPT_COOKIE...................10022
CURLOPT_COOKIEFILE...............10031
CURLOPT_COOKIEJAR................10082
CURLOPT_CUSTOMREQUEST............10036
CURLOPT_EGDSOCKET................10077
CURLOPT_RANDOM_FILE..............10076
CURLOPT_ENCODING.................10102
CURLOPT_FTPPORT..................10017
CURLOPT_INTERFACE................10062
CURLOPT_SSLKEYPASSWD.............10026
CURLOPT_SSLKEY...................10087
CURLOPT_SSH_PRIVATE_KEYFILE......10153
CURLOPT_KRB4LEVEL................10063
CURLOPT_POSTFIELDS...............10015
CURLOPT_PROXYUSERPWD.............10006
CURLOPT_RANGE....................10007
CURLOPT_REFERER..................10016
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5..10162
CURLOPT_SSH_PUBLIC_KEYFILE.......10152
CURLOPT_SSL_CIPHER_LIST..........10083
CURLOPT_SSLCERT..................10025
CURLOPT_SSLCERTTYPE..............10086
CURLOPT_SSLENGINE................10089
CURLOPT_SSLENGINE_DEFAULT........90
CURLOPT_SSLKEYTYPE...............10088
CURLOPT_URL......................10002
CURLOPT_USERAGENT................10018
CURLOPT_USERPWD..................10005
CURLOPT_HTTP200ALIASES...........10104
CURLOPT_HTTPHEADER...............10023
CURLOPT_POSTQUOTE................10039
CURLOPT_QUOTE....................10028
CURLOPT_FILE.....................10001
CURLOPT_WRITEHEADER..............10029
CURLOPT_HEADERFUNCTION...........20079
CURLOPT_PASSWDFUNCTION...........CURLOPT_PASSWDFUNCTION
CURLOPT_PROGRESSFUNCTION.........20056
CURLOPT_WRITEFUNCTION............20011
<?php
$arr = array(
CURLOPT_AUTOREFERER => 'CURLOPT_AUTOREFERER',
CURLOPT_BINARYTRANSFER => 'CURLOPT_BINARYTRANSFER',
CURLOPT_RETURNTRANSFER => 'CURLOPT_RETURNTRANSFER',
CURLOPT_COOKIESESSION => 'CURLOPT_COOKIESESSION',
CURLOPT_CERTINFO => 'CURLOPT_CERTINFO',
CURLOPT_VERBOSE => 'CURLOPT_VERBOSE',
CURLOPT_CRLF => 'CURLOPT_CRLF',
CURLOPT_DNS_USE_GLOBAL_CACHE => 'CURLOPT_DNS_USE_GLOBAL_CACHE',
CURLOPT_FAILONERROR => 'CURLOPT_FAILONERROR',
CURLOPT_FILETIME => 'CURLOPT_FILETIME',
CURLOPT_FOLLOWLOCATION => 'CURLOPT_FOLLOWLOCATION',
CURLOPT_MAXREDIRS => 'CURLOPT_MAXREDIRS',
CURLOPT_FORBID_REUSE => 'CURLOPT_FORBID_REUSE',
CURLOPT_FRESH_CONNECT => 'CURLOPT_FRESH_CONNECT',
CURLOPT_FTP_USE_EPRT => 'CURLOPT_FTP_USE_EPRT',
CURLOPT_FTP_USE_EPSV => 'CURLOPT_FTP_USE_EPSV',
CURLOPT_FTP_CREATE_MISSING_DIRS => 'CURLOPT_FTP_CREATE_MISSING_DIRS',
CURLOPT_FTPAPPEND => 'CURLOPT_FTPAPPEND',
CURLOPT_FTPASCII => 'CURLOPT_FTPASCII',
CURLOPT_TRANSFERTEXT => 'CURLOPT_TRANSFERTEXT',
CURLOPT_FTPLISTONLY => 'CURLOPT_FTPLISTONLY',
CURLOPT_HEADER => 'CURLOPT_HEADER',
CURLOPT_HTTPGET => 'CURLOPT_HTTPGET',
CURLOPT_HTTPPROXYTUNNEL => 'CURLOPT_HTTPPROXYTUNNEL',
CURLOPT_MUTE => 'CURLOPT_MUTE',
CURLOPT_NETRC => 'CURLOPT_NETRC',
CURLOPT_NOBODY => 'CURLOPT_NOBODY',
CURLOPT_NOPROGRESS => 'CURLOPT_NOPROGRESS',
CURLOPT_NOSIGNAL => 'CURLOPT_NOSIGNAL',
CURLOPT_POST => 'CURLOPT_POST',
CURLOPT_PUT => 'CURLOPT_PUT',
CURLOPT_INFILE => 'CURLOPT_INFILE',
CURLOPT_INFILESIZE => 'CURLOPT_INFILESIZE',
CURLOPT_RETURNTRANSFER => 'CURLOPT_RETURNTRANSFER',
CURLOPT_SSL_VERIFYPEER => 'CURLOPT_SSL_VERIFYPEER',
CURLOPT_CAINFO => 'CURLOPT_CAINFO',
CURLOPT_CAPATH => 'CURLOPT_CAPATH',
CURLOPT_TRANSFERTEXT => 'CURLOPT_TRANSFERTEXT',
CURLOPT_UNRESTRICTED_AUTH => 'CURLOPT_UNRESTRICTED_AUTH',
CURLOPT_FOLLOWLOCATION => 'CURLOPT_FOLLOWLOCATION',
CURLOPT_UPLOAD => 'CURLOPT_UPLOAD',
CURLOPT_VERBOSE => 'CURLOPT_VERBOSE',
CURLOPT_STDERR => 'CURLOPT_STDERR',
CURLOPT_BUFFERSIZE => 'CURLOPT_BUFFERSIZE',
CURLOPT_CLOSEPOLICY => 'CURLOPT_CLOSEPOLICY',
CURLOPT_CONNECTTIMEOUT => 'CURLOPT_CONNECTTIMEOUT',
CURLOPT_CONNECTTIMEOUT_MS => 'CURLOPT_CONNECTTIMEOUT_MS',
CURLOPT_DNS_CACHE_TIMEOUT => 'CURLOPT_DNS_CACHE_TIMEOUT',
CURLOPT_FTPSSLAUTH => 'CURLOPT_FTPSSLAUTH',
CURLOPT_HTTP_VERSION => 'CURLOPT_HTTP_VERSION',
CURLOPT_HTTPAUTH => 'CURLOPT_HTTPAUTH',
CURLOPT_INFILESIZE => 'CURLOPT_INFILESIZE',
CURLOPT_READFUNCTION => 'CURLOPT_READFUNCTION',
CURLOPT_LOW_SPEED_LIMIT => 'CURLOPT_LOW_SPEED_LIMIT',
CURLOPT_LOW_SPEED_TIME => 'CURLOPT_LOW_SPEED_TIME',
CURLOPT_LOW_SPEED_LIMIT => 'CURLOPT_LOW_SPEED_LIMIT',
CURLOPT_MAXCONNECTS => 'CURLOPT_MAXCONNECTS',
CURLOPT_CLOSEPOLICY => 'CURLOPT_CLOSEPOLICY',
CURLOPT_MAXREDIRS => 'CURLOPT_MAXREDIRS',
CURLOPT_FOLLOWLOCATION => 'CURLOPT_FOLLOWLOCATION',
CURLOPT_PORT => 'CURLOPT_PORT',
CURLOPT_PROTOCOLS => 'CURLOPT_PROTOCOLS',
CURLOPT_REDIR_PROTOCOLS => 'CURLOPT_REDIR_PROTOCOLS',
CURLOPT_PROXYAUTH => 'CURLOPT_PROXYAUTH',
CURLOPT_HTTPAUTH => 'CURLOPT_HTTPAUTH',
CURLOPT_PROXYPORT => 'CURLOPT_PROXYPORT',
CURLOPT_PROXY => 'CURLOPT_PROXY',
CURLOPT_PROXYTYPE => 'CURLOPT_PROXYTYPE',
CURLOPT_REDIR_PROTOCOLS => 'CURLOPT_REDIR_PROTOCOLS',
CURLOPT_FOLLOWLOCATION => 'CURLOPT_FOLLOWLOCATION',
CURLOPT_PROTOCOLS => 'CURLOPT_PROTOCOLS',
CURLOPT_RESUME_FROM => 'CURLOPT_RESUME_FROM',
CURLOPT_SSL_VERIFYHOST => 'CURLOPT_SSL_VERIFYHOST',
CURLOPT_SSLVERSION => 'CURLOPT_SSLVERSION',
CURLOPT_TIMECONDITION => 'CURLOPT_TIMECONDITION',
CURLOPT_TIMEVALUE => 'CURLOPT_TIMEVALUE',
CURLOPT_HEADER => 'CURLOPT_HEADER',
CURLOPT_TIMEOUT => 'CURLOPT_TIMEOUT',
CURLOPT_TIMEOUT_MS => 'CURLOPT_TIMEOUT_MS',
CURLOPT_TIMEVALUE => 'CURLOPT_TIMEVALUE',
CURLOPT_TIMECONDITION => 'CURLOPT_TIMECONDITION',
CURLOPT_MAX_RECV_SPEED_LARGE => 'CURLOPT_MAX_RECV_SPEED_LARGE',
CURLOPT_MAX_SEND_SPEED_LARGE => 'CURLOPT_MAX_SEND_SPEED_LARGE',
CURLOPT_SSH_AUTH_TYPES => 'CURLOPT_SSH_AUTH_TYPES',
CURLOPT_CAINFO => 'CURLOPT_CAINFO',
CURLOPT_SSL_VERIFYPEER => 'CURLOPT_SSL_VERIFYPEER',
CURLOPT_CAPATH => 'CURLOPT_CAPATH',
CURLOPT_SSL_VERIFYPEER => 'CURLOPT_SSL_VERIFYPEER',
CURLOPT_COOKIE => 'CURLOPT_COOKIE',
CURLOPT_COOKIEFILE => 'CURLOPT_COOKIEFILE',
CURLOPT_COOKIEJAR => 'CURLOPT_COOKIEJAR',
CURLOPT_CUSTOMREQUEST => 'CURLOPT_CUSTOMREQUEST',
CURLOPT_EGDSOCKET => 'CURLOPT_EGDSOCKET',
CURLOPT_RANDOM_FILE => 'CURLOPT_RANDOM_FILE',
CURLOPT_ENCODING => 'CURLOPT_ENCODING',
CURLOPT_FTPPORT => 'CURLOPT_FTPPORT',
CURLOPT_INTERFACE => 'CURLOPT_INTERFACE',
CURLOPT_KEYPASSWD => 'CURLOPT_KEYPASSWD',
CURLOPT_SSLKEY => 'CURLOPT_SSLKEY',
CURLOPT_SSH_PRIVATE_KEYFILE => 'CURLOPT_SSH_PRIVATE_KEYFILE',
CURLOPT_KRB4LEVEL => 'CURLOPT_KRB4LEVEL',
CURLOPT_POSTFIELDS => 'CURLOPT_POSTFIELDS',
CURLOPT_PROXY => 'CURLOPT_PROXY',
CURLOPT_PROXYUSERPWD => 'CURLOPT_PROXYUSERPWD',
CURLOPT_RANDOM_FILE => 'CURLOPT_RANDOM_FILE',
CURLOPT_RANGE => 'CURLOPT_RANGE',
CURLOPT_REFERER => 'CURLOPT_REFERER',
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 => 'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5',
CURLOPT_SSH_PUBLIC_KEYFILE => 'CURLOPT_SSH_PUBLIC_KEYFILE',
CURLOPT_SSH_PRIVATE_KEYFILE => 'CURLOPT_SSH_PRIVATE_KEYFILE',
CURLOPT_KEYPASSWD => 'CURLOPT_KEYPASSWD',
CURLOPT_SSL_CIPHER_LIST => 'CURLOPT_SSL_CIPHER_LIST',
CURLOPT_SSLCERT => 'CURLOPT_SSLCERT',
CURLOPT_SSLCERTPASSWD => 'CURLOPT_SSLCERTPASSWD',
CURLOPT_SSLCERT => 'CURLOPT_SSLCERT',
CURLOPT_SSLCERTTYPE => 'CURLOPT_SSLCERTTYPE',
CURLOPT_SSLENGINE => 'CURLOPT_SSLENGINE',
CURLOPT_SSLKEY => 'CURLOPT_SSLKEY',
CURLOPT_SSLENGINE_DEFAULT => 'CURLOPT_SSLENGINE_DEFAULT',
CURLOPT_SSLKEY => 'CURLOPT_SSLKEY',
CURLOPT_SSLKEYPASSWD => 'CURLOPT_SSLKEYPASSWD',
CURLOPT_SSLKEY => 'CURLOPT_SSLKEY',
CURLOPT_SSLKEYTYPE => 'CURLOPT_SSLKEYTYPE',
CURLOPT_SSLKEY => 'CURLOPT_SSLKEY',
CURLOPT_URL => 'CURLOPT_URL',
CURLOPT_USERAGENT => 'CURLOPT_USERAGENT',
CURLOPT_USERPWD => 'CURLOPT_USERPWD',
CURLOPT_HTTP200ALIASES => 'CURLOPT_HTTP200ALIASES',
CURLOPT_HTTPHEADER => 'CURLOPT_HTTPHEADER',
CURLOPT_POSTQUOTE => 'CURLOPT_POSTQUOTE',
CURLOPT_QUOTE => 'CURLOPT_QUOTE',
CURLOPT_FILE => 'CURLOPT_FILE',
CURLOPT_INFILE => 'CURLOPT_INFILE',
CURLOPT_STDERR => 'CURLOPT_STDERR',
CURLOPT_WRITEHEADER => 'CURLOPT_WRITEHEADER',
CURLOPT_HEADERFUNCTION => 'CURLOPT_HEADERFUNCTION',
CURLOPT_PASSWDFUNCTION => 'CURLOPT_PASSWDFUNCTION',
CURLOPT_PROGRESSFUNCTION => 'CURLOPT_PROGRESSFUNCTION',
CURLOPT_READFUNCTION => 'CURLOPT_READFUNCTION',
CURLOPT_INFILE => 'CURLOPT_INFILE',
CURLOPT_WRITEFUNCTION => 'CURLOPT_WRITEFUNCTION',
CURLOPT_PROTOCOLS => 'CURLOPT_PROTOCOLS',
CURLOPT_REDIR_PROTOCOLS => 'CURLOPT_REDIR_PROTOCOLS',
CURLOPT_AUTOREFERER => 'CURLOPT_AUTOREFERER',
CURLOPT_BINARYTRANSFER => 'CURLOPT_BINARYTRANSFER',
CURLOPT_FTPSSLAUTH => 'CURLOPT_FTPSSLAUTH',
CURLOPT_PROXYAUTH => 'CURLOPT_PROXYAUTH',
CURLOPT_TIMECONDITION => 'CURLOPT_TIMECONDITION',
CURLOPT_FTP_USE_EPRT => 'CURLOPT_FTP_USE_EPRT',
CURLOPT_NOSIGNAL => 'CURLOPT_NOSIGNAL',
CURLOPT_UNRESTRICTED_AUTH => 'CURLOPT_UNRESTRICTED_AUTH',
CURLOPT_BUFFERSIZE => 'CURLOPT_BUFFERSIZE',
CURLOPT_HTTPAUTH => 'CURLOPT_HTTPAUTH',
CURLOPT_PROXYPORT => 'CURLOPT_PROXYPORT',
CURLOPT_PROXYTYPE => 'CURLOPT_PROXYTYPE',
CURLOPT_SSLCERTTYPE => 'CURLOPT_SSLCERTTYPE',
CURLOPT_HTTP200ALIASES => 'CURLOPT_HTTP200ALIASES',
CURLOPT_POSTFIELDS => 'CURLOPT_POSTFIELDS',
);
foreach ($arr as $key => $value) {
echo str_pad($value, 33, '.') . $key . PHP_EOL;
}
@denisdemaisbr
Copy link

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment