Options
in package
HTTP client curl options class
Tags
Table of Contents
Properties
- $commandOptions : array<string|int, mixed>
- Curl CLI-to-PHP options
- $omitOptions : array<string|int, mixed>
- Options to omit from conversion, as they are addressed elsewhere in the conversion
- $optionValues : array<string|int, mixed>
- Curl option PHP values
- $phpOptions : array<string|int, mixed>
- Curl PHP-to-CLI options
- $unresolvedOptions : array<string|int, mixed>
- Unresolved Curl options
- $valueOptions : array<string|int, mixed>
- Curl options that require a value
Methods
- getCommandOption() : string|array<string|int, mixed>|null
- Get CLI option
- getCommandOptions() : array<string|int, mixed>
- Get the CLI options
- getOmitOptions() : array<string|int, mixed>
- Get the omit options
- getOptionNameByValue() : string|null
- Get the option name by value
- getOptionValueByName() : int|null
- Get the option value by name
- getPhpOption() : string|array<string|int, mixed>|null
- Get Php option
- getPhpOptions() : array<string|int, mixed>
- Get the PHP options
- getValueOption() : mixed
- Get value option
- getValueOptions() : array<string|int, mixed>
- Get the value options
- hasOptionNameByValue() : bool
- Has the option name by value
- hasOptionValueByName() : bool
- Has the option value by name
- isBooleanOption() : bool
- Check if the option is a boolean option
- isCommandOption() : bool
- Check if the option is a valid CLI option
- isOmitOption() : bool
- Is omit option
- isPhpOption() : bool
- Check if the option is a valid PHP option
- isValidOption() : bool
- Check if the option is valid
- isValueOption() : bool
- Check if the option requires a value
Properties
$commandOptions
Curl CLI-to-PHP options
protected
static array<string|int, mixed>
$commandOptions
= [
'--abstract-unix-socket' => 'CURLOPT_ABSTRACT_UNIX_SOCKET',
// --abstract-unix-socket <path>
'--alt-svc' => 'CURLOPT_ALTSVC',
// --alt-svc <filename>
'-a' => 'CURLOPT_APPEND',
'--aws-sigv4' => 'CURLOPT_AWS_SIGV4',
// --aws-sigv4 <provider1[:provider2[:region[:service]]]>
'--cacert' => 'CURLOPT_CAINFO',
// --cacert <file>
'--capath' => 'CURLOPT_CAPATH',
// --capath <dir>
'--connect-timeout' => ['CURLOPT_TIMEOUT', 'CURLOPT_CONNECTTIMEOUT', 'CURLOPT_TIMEOUT'],
// --connect-timeout <fractional seconds> (MS needs to be converted to seconds)
'--connect-to' => 'CURLOPT_CONNECT_TO',
// --connect-to <HOST1:PORT1:HOST2:PORT2>
'-b' => 'CURLOPT_COOKIE',
// -b, --cookie <data|filename>
'--cookie' => 'CURLOPT_COOKIE',
// -b, --cookie <data|filename>
'-c' => 'CURLOPT_COOKIEJAR',
// -c, --cookie-jar <filename>
'--cookie-jar' => 'CURLOPT_COOKIEJAR',
// -c, --cookie-jar <filename>
'--crlf' => 'CURLOPT_CRLF',
'--crlfile' => 'CURLOPT_CRLFILE',
// --crlfile <file>
'-X' => ['CURLOPT_POST', 'CURLOPT_PUT', 'CURLOPT_CUSTOMREQUEST'],
// -X, --request <method>
'--request' => ['CURLOPT_POST', 'CURLOPT_PUT', 'CURLOPT_CUSTOMREQUEST'],
// -X, --request <method>
'--disallow-username-in-url' => 'CURLOPT_DISALLOW_USERNAME_IN_URL',
'--dns-interface' => 'CURLOPT_DNS_INTERFACE',
// --dns-interface <interface>
'--dns-ipv4-addr' => 'CURLOPT_DNS_LOCAL_IP4',
// --dns-ipv4-addr <address>
'--dns-ipv6-addr' => 'CURLOPT_DNS_LOCAL_IP6',
// --dns-ipv6-addr <address>
'--dns-servers' => 'CURLOPT_DNS_SERVERS',
// --dns-servers <addresses>
'--doh-insecure' => ['CURLOPT_DOH_SSL_VERIFYPEER', 'CURLOPT_DOH_SSL_VERIFYHOST'],
// Verify the DNS-over-HTTPS server's SSL certificate name fields against the host name and certificate. Available as of PHP 8.2.0 and cURL 7.76.0.
'--no-doh-insecure' => ['CURLOPT_DOH_SSL_VERIFYPEER', 'CURLOPT_DOH_SSL_VERIFYHOST'],
// Verify the DNS-over-HTTPS server's SSL certificate name fields against the host name and certificate. Available as of PHP 8.2.0 and cURL 7.76.0.
'--doh-cert-status' => 'CURLOPT_DOH_SSL_VERIFYSTATUS',
// Tell cURL to verify the status of the DNS-over-HTTPS server certificate using the "Certificate Status Request" TLS extension (OCSP stapling). Available as of PHP 8.2.0 and cURL 7.76.0.
'--doh-url' => 'CURLOPT_DOH_URL',
// --doh-url <url> Provides the DNS-over-HTTPS URL. Available as of PHP 8.1.0 and cURL 7.62.0.
'--expect100-timeout' => 'CURLOPT_EXPECT_100_TIMEOUT_MS',
// --expect100-timeout <seconds>
'-P' => 'CURLOPT_FTPPORT',
// -P, --ftp-port <address>
'--ftp-port' => 'CURLOPT_FTPPORT',
// -P, --ftp-port <address>
'--ftp-account' => 'CURLOPT_FTP_ACCOUNT',
// --ftp-account <data>
'--ftp-alternative-to-user' => 'CURLOPT_FTP_ALTERNATIVE_TO_USER',
// --ftp-alternative-to-user <command>
'--ftp-create-dirs' => 'CURLOPT_FTP_CREATE_MISSING_DIRS',
'--ftp-method' => 'CURLOPT_FTP_FILEMETHOD',
// --ftp-method <method>
'--ftp-pasv' => 'CURLOPT_FTP_SKIP_PASV_IP',
'--ftp-skip-pasv-ip' => 'CURLOPT_FTP_SKIP_PASV_IP',
'--ftp-ssl-ccc' => 'CURLOPT_FTP_SSL_CCC',
'--disable-eprt' => 'CURLOPT_FTP_USE_EPRT',
'--disable-epsv' => 'CURLOPT_FTP_USE_EPSV',
'--ftp-pret' => 'CURLOPT_FTP_USE_PRET',
'--delegation' => 'CURLOPT_GSSAPI_DELEGATION',
// --delegation <level>
'--happy-eyeballs-timeout-ms' => 'CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS',
// --happy-eyeballs-timeout-ms <milliseconds>
'--haproxy-protocol' => 'CURLOPT_HAPROXYPROTOCOL',
'-i' => 'CURLOPT_HEADER',
'--include' => 'CURLOPT_HEADER',
'--hsts' => 'CURLOPT_HSTS',
// --hsts <filename>
'--http0.9' => 'CURLOPT_HTTP09_ALLOWED',
'-H' => 'CURLOPT_HTTPHEADER',
// -H, --header <header/@file>
'--header' => 'CURLOPT_HTTPHEADER',
// -H, --header <header/@file>
'-p' => 'CURLOPT_HTTPPROXYTUNNEL',
'--proxytunnel' => 'CURLOPT_HTTPPROXYTUNNEL',
'-0' => 'CURLOPT_HTTP_VERSION',
'--http1.0' => 'CURLOPT_HTTP_VERSION',
'--http1.1' => 'CURLOPT_HTTP_VERSION',
'--http2' => 'CURLOPT_HTTP_VERSION',
'--ignore-content-length' => 'CURLOPT_IGNORE_CONTENT_LENGTH',
'-T' => 'CURLOPT_INFILE',
// -T, --upload-file <file> (Used with PUT)
'--upload-file' => 'CURLOPT_INFILE',
// -T, --upload-file <file> (Used with PUT)
'--interface' => 'CURLOPT_INTERFACE',
// --interface <name>
'--krb' => 'CURLOPT_KRBLEVEL',
// --krb <level>
'--local-port' => ['CURLOPT_LOCALPORT', 'CURLOPT_LOCALPORTRANGE'],
// --local-port <num/range>
'--login-options' => 'CURLOPT_LOGIN_OPTIONS',
// --login-options <options>
'-Y' => 'CURLOPT_LOW_SPEED_LIMIT',
// -Y, --speed-limit <speed>
'--speed-limit' => 'CURLOPT_LOW_SPEED_LIMIT',
// -Y, --speed-limit <speed>
'-y' => 'CURLOPT_LOW_SPEED_TIME',
// -y, --speed-time <seconds>
'--speed-time' => 'CURLOPT_LOW_SPEED_TIME',
// -y, --speed-time <seconds>
'--mail-auth' => 'CURLOPT_MAIL_AUTH',
// --mail-auth <address>
'--mail-from' => 'CURLOPT_MAIL_FROM',
// --mail-from <address>
'--mail-rcpt' => 'CURLOPT_MAIL_RCPT',
// --mail-rcpt <address>
'--mail-rcpt-allowfails' => 'CURLOPT_MAIL_RCPT_ALLLOWFAILS',
'--max-filesize' => 'CURLOPT_MAXFILESIZE',
// --max-filesize <bytes>
'-m' => 'CURLOPT_MAXLIFETIME_CONN',
// -m, --max-time <fractional seconds>
'--max-time' => 'CURLOPT_MAXLIFETIME_CONN',
// -m, --max-time <fractional seconds>
'--max-redirs' => 'CURLOPT_MAXREDIRS',
// --max-redirs <num>
'-n' => 'CURLOPT_NETRC',
'--netrc' => 'CURLOPT_NETRC',
'--netrc-file' => 'CURLOPT_NETRC_FILE',
// --netrc-file <filename>
'--no-progress-meter' => 'CURLOPT_NOPROGRESS',
'--noproxy' => 'CURLOPT_NOPROXY',
// --noproxy <no-proxy-list>
'-u' => ['CURLOPT_USERPWD', 'CURLOPT_USERNAME', 'CURLOPT_PASSWORD'],
// -u, --user <user:password>
'--user' => ['CURLOPT_USERPWD', 'CURLOPT_USERNAME', 'CURLOPT_PASSWORD'],
// -u, --user <user:password>
'-d' => 'CURLOPT_POSTFIELDS',
// -d, --data <data>
'-data' => 'CURLOPT_POSTFIELDS',
// -d, --data <data>
'-x' => 'CURLOPT_PROXY',
// -x, --proxy [protocol://]host[:port]
'--proxy' => 'CURLOPT_PROXY',
// -x, --proxy [protocol://]host[:port]
'--proxy-basic' => 'CURLOPT_PROXYAUTH',
'--proxy-digest' => 'CURLOPT_PROXYAUTH',
'--proxy-header' => 'CURLOPT_PROXYHEADER',
// --proxy-header <header/@file>
'-U' => 'CURLOPT_PROXYUSERPWD',
// -U, --proxy-user <user:password>
'--proxy-user' => 'CURLOPT_PROXYUSERPWD',
// -U, --proxy-user <user:password>
'--proxy-cacert' => 'CURLOPT_PROXY_CAINFO',
// --proxy-cacert <file>
'--proxy-capath' => 'CURLOPT_PROXY_CAPATH',
// --proxy-capath <dir>
'--proxy-crlfile' => 'CURLOPT_PROXY_CRLFILE',
// --proxy-crlfile <file>
'--proxy-pass' => 'CURLOPT_PROXY_KEYPASSWD',
// --proxy-pass <phrase>
'--proxy-pinnedpubkey' => 'CURLOPT_PROXY_PINNEDPUBLICKEY',
// --proxy-pinnedpubkey <hashes>
'--proxy-service-name' => 'CURLOPT_PROXY_SERVICE_NAME',
// --proxy-service-name <name>
'--proxy-cert' => 'CURLOPT_PROXY_SSLCERT',
// --proxy-cert <cert[:passwd]>
'--proxy-cert-type' => 'CURLOPT_PROXY_SSLCERTTYPE',
// --proxy-cert-type <type>
'--proxy-key' => 'CURLOPT_PROXY_SSLKEY',
// --proxy-key <key>
'--proxy-key-type' => 'CURLOPT_PROXY_SSLKEYTYPE',
// --proxy-key-type <type>
'--proxy-ciphers' => 'CURLOPT_PROXY_SSL_CIPHER_LIST',
// --proxy-ciphers <list>
'--proxy-insecure' => ['CURLOPT_PROXY_SSL_VERIFYHOST', 'CURLOPT_PROXY_SSL_VERIFYPEER'],
'--proxy-tls13-ciphers' => 'CURLOPT_PROXY_TLS13_CIPHERS',
// --proxy-tls13-ciphers <ciphersuite list>
'--proxy-tlspassword' => 'CURLOPT_PROXY_TLSAUTH_PASSWORD',
// --proxy-tlspassword <string>
'--proxy-tlsauthtype' => 'CURLOPT_PROXY_TLSAUTH_TYPE',
// --proxy-tlsauthtype <type>
'--proxy-tlsuser' => 'CURLOPT_PROXY_TLSAUTH_USERNAME',
// --proxy-tlsuser <name>
'-Q' => 'CURLOPT_QUOTE',
// -Q, --quote <command>
'--quote' => 'CURLOPT_QUOTE',
// -Q, --quote <command>
'--random-file' => 'CURLOPT_RANDOM_FILE',
// --random-file <file>
'-r' => 'CURLOPT_RANGE',
// -r, --range <range>
'--range' => 'CURLOPT_RANGE',
// -r, --range <range>
'-e' => 'CURLOPT_REFERER',
// -e, --referer <url>
'--referer' => 'CURLOPT_REFERER',
// -e, --referer <url>
'--resolve' => 'CURLOPT_RESOLVE',
// --resolve <[+]host:port:addr[,addr]...>
'--sasl-authzid' => 'CURLOPT_SASL_AUTHZID',
// --sasl-authzid <identity>
'--sasl-ir' => 'CURLOPT_SASL_IR',
'--service-name' => 'CURLOPT_SERVICE_NAME',
// --service-name <name>
'--socks5-basic' => 'CURLOPT_SOCKS5_AUTH',
'--socks5-gssapi-nec' => 'CURLOPT_SOCKS5_GSSAPI_NEC',
'--socks5-gssapi-service' => 'CURLOPT_SOCKS5_GSSAPI_SERVICE',
// --socks5-gssapi-service <name>
'--compressed-ssh' => 'CURLOPT_SSH_COMPRESSION',
'--hostpubmd5' => 'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5',
// --hostpubmd5 <md5>
'--hostpubsha256' => 'CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256',
// --hostpubsha256 <sha256>
'--pubkey' => 'CURLOPT_SSH_PUBLIC_KEYFILE',
// --pubkey <key>
'-E' => 'CURLOPT_SSLCERT',
// -E, --cert <certificate[:password]>
'--cert' => 'CURLOPT_SSLCERT',
// -E, --cert <certificate[:password]>
'--cert-type' => 'CURLOPT_SSLCERTTYPE',
// --cert-type <type>
'--engine' => 'CURLOPT_SSLENGINE',
// --engine <name>
'--key' => 'CURLOPT_SSLKEY',
// --key <key>
'--pass' => 'CURLOPT_SSLKEYPASSWD',
// --pass <phrase>
'--key-type' => 'CURLOPT_SSLKEYTYPE',
// --key-type <type>
'-2' => 'CURLOPT_SSLVERSION',
'--sslv2' => 'CURLOPT_SSLVERSION',
'-3' => 'CURLOPT_SSLVERSION',
'--sslv3' => 'CURLOPT_SSLVERSION',
'--ciphers' => 'CURLOPT_SSL_CIPHER_LIST',
// --ciphers <list of ciphers> i.e. ECDHE-ECDSA-AES256-CCM8
'--curves' => 'CURLOPT_SSL_EC_CURVES',
// --curves <algorithm list>
'--alpn' => 'CURLOPT_SSL_ENABLE_ALPN',
'--no-alpn' => 'CURLOPT_SSL_ENABLE_ALPN',
'--npn' => 'CURLOPT_SSL_ENABLE_NPN',
'--no-npn' => 'CURLOPT_SSL_ENABLE_NPN',
'--false-start' => 'CURLOPT_SSL_FALSESTART',
'--no-sessionid' => 'CURLOPT_SSL_SESSIONID_CACHE',
'-k' => ['CURLOPT_SSL_VERIFYHOST', 'CURLOPT_SSL_VERIFYPEER'],
'--insecure' => ['CURLOPT_SSL_VERIFYHOST', 'CURLOPT_SSL_VERIFYPEER'],
'--cert-status' => 'CURLOPT_SSL_VERIFYSTATUS',
'--stderr' => 'CURLOPT_STDERR',
// --stderr <file>
'--suppress-connect-headers' => 'CURLOPT_SUPPRESS_CONNECT_HEADERS',
'--tcp-fastopen' => 'CURLOPT_TCP_FASTOPEN',
'--keepalive-time' => 'CURLOPT_TCP_KEEPALIVE',
// --keepalive-time <seconds>
'--tcp-nodelay' => 'CURLOPT_TCP_NODELAY',
'-t' => 'CURLOPT_TELNETOPTIONS',
// -t, --telnet-option <opt=val>
'--telnet-option' => 'CURLOPT_TELNETOPTIONS',
// -t, --telnet-option <opt=val>
'--tftp-blksize' => 'CURLOPT_TFTP_BLKSIZE',
// --tftp-blksize <value>
'--tftp-no-options' => 'CURLOPT_TFTP_NO_OPTIONS',
'-z --time-cond' => 'CURLOPT_TIMECONDITION',
// -z, --time-cond <time>
'--tls13-ciphers' => 'CURLOPT_TLS13_CIPHERS',
// --tls13-ciphers <ciphersuite list>
'--tlspassword' => 'CURLOPT_TLSAUTH_PASSWORD',
// --tlspassword <string>
'--tlsauthtype' => 'CURLOPT_TLSAUTH_TYPE',
// --tlsauthtype <type>
'--tlsuser' => 'CURLOPT_TLSAUTH_USERNAME',
// --tlsuser <name>
'--tr-encoding' => 'CURLOPT_TRANSFER_ENCODING',
'--no-tr-encoding' => 'CURLOPT_TRANSFER_ENCODING',
'--unix-socket' => 'CURLOPT_UNIX_SOCKET_PATH',
// --unix-socket <path>
'--url' => 'CURLOPT_URL',
// --url <url> (Used for config files, unnecessary on the CLI)
'-A' => 'CURLOPT_USERAGENT',
// -A, --user-agent <name>
'--user-agent' => 'CURLOPT_USERAGENT',
// -A, --user-agent <name>
'--ssl' => 'CURLOPT_USE_SSL',
// Attempts to force server to use secure connection',
'--ssl-reqd' => 'CURLOPT_USE_SSL',
// Attempts to force server to use secure connection',
'-v' => 'CURLOPT_VERBOSE',
'--verbose' => 'CURLOPT_VERBOSE',
'--oauth2-bearer' => 'CURLOPT_XOAUTH2_BEARER',
// --oauth2-bearer <token>
'--ssl-allow-beast' => 'CURLSSLOPT_ALLOW_BEAST',
'--ssl-auto-client-cert' => 'CURLSSLOPT_AUTO_CLIENT_CERT',
'--ssl-no-revoke' => 'CURLSSLOPT_NO_REVOKE',
'--ssl-revoke-best-effort' => 'CURLSSLOPT_REVOKE_BEST_EFFORT',
]
$omitOptions
Options to omit from conversion, as they are addressed elsewhere in the conversion
protected
static array<string|int, mixed>
$omitOptions
= ['CURLOPT_CUSTOMREQUEST', 'CURLOPT_HEADER', 'CURLOPT_HTTPHEADER', 'CURLOPT_POST', 'CURLOPT_POSTFIELDS', 'CURLOPT_PUT', 'CURLOPT_RETURNTRANSFER', 'CURLOPT_URL', 'CURLOPT_SSL_VERIFYHOST', 'CURLOPT_SSL_VERIFYPEER', '-i', '-X', '--request', '-H', '--header', '-d', '--data', '-F', '--form', '-k', '--insecure', '--url']
$optionValues
Curl option PHP values
protected
static array<string|int, mixed>
$optionValues
= ['CURLOPT_ABSTRACT_UNIX_SOCKET' => 10264, 'CURLOPT_ALTSVC' => 10287, 'CURLOPT_APPEND' => 50, 'CURLOPT_AWS_SIGV4' => 10305, 'CURLOPT_CAINFO' => 10065, 'CURLOPT_CAPATH' => 10097, 'CURLOPT_CONNECTTIMEOUT' => 78, 'CURLOPT_CONNECT_TO' => 10243, 'CURLOPT_COOKIE' => 10022, 'CURLOPT_COOKIEJAR' => 10082, 'CURLOPT_CRLF' => 27, 'CURLOPT_CRLFILE' => 10169, 'CURLOPT_CUSTOMREQUEST' => 10036, 'CURLOPT_DISALLOW_USERNAME_IN_URL' => 278, 'CURLOPT_DNS_INTERFACE' => 10221, 'CURLOPT_DNS_LOCAL_IP4' => 10222, 'CURLOPT_DNS_LOCAL_IP6' => 10223, 'CURLOPT_DNS_SERVERS' => 10211, 'CURLOPT_DOH_SSL_VERIFYHOST' => 307, 'CURLOPT_DOH_SSL_VERIFYPEER' => 306, 'CURLOPT_DOH_SSL_VERIFYSTATUS' => 308, 'CURLOPT_DOH_URL' => 10279, 'CURLOPT_EXPECT_100_TIMEOUT_MS' => 227, 'CURLOPT_FTPPORT' => 10017, 'CURLOPT_FTP_ACCOUNT' => 10134, 'CURLOPT_FTP_ALTERNATIVE_TO_USER' => 10147, 'CURLOPT_FTP_CREATE_MISSING_DIRS' => 110, 'CURLOPT_FTP_FILEMETHOD' => 138, 'CURLOPT_FTP_SKIP_PASV_IP' => 137, 'CURLOPT_FTP_SSL_CCC' => 154, 'CURLOPT_FTP_USE_EPRT' => 106, 'CURLOPT_FTP_USE_EPSV' => 85, 'CURLOPT_FTP_USE_PRET' => 188, 'CURLOPT_GSSAPI_DELEGATION' => 210, 'CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS' => 271, 'CURLOPT_HAPROXYPROTOCOL' => 274, 'CURLOPT_HEADER' => 42, 'CURLOPT_HSTS' => 10300, 'CURLOPT_HTTP09_ALLOWED' => 285, 'CURLOPT_HTTPHEADER' => 10023, 'CURLOPT_HTTPPROXYTUNNEL' => 61, 'CURLOPT_HTTP_VERSION' => 84, 'CURLOPT_IGNORE_CONTENT_LENGTH' => 136, 'CURLOPT_INFILE' => 10009, 'CURLOPT_INTERFACE' => 10062, 'CURLOPT_KRBLEVEL' => 10063, 'CURLOPT_LOCALPORT' => 139, 'CURLOPT_LOCALPORTRANGE' => 140, 'CURLOPT_LOGIN_OPTIONS' => 10224, 'CURLOPT_LOW_SPEED_LIMIT' => 19, 'CURLOPT_LOW_SPEED_TIME' => 20, 'CURLOPT_MAIL_AUTH' => 10217, 'CURLOPT_MAIL_FROM' => 10186, 'CURLOPT_MAIL_RCPT' => 10187, 'CURLOPT_MAIL_RCPT_ALLLOWFAILS' => 290, 'CURLOPT_MAXFILESIZE' => 114, 'CURLOPT_MAXLIFETIME_CONN' => 314, 'CURLOPT_MAXREDIRS' => 68, 'CURLOPT_NETRC' => 51, 'CURLOPT_NETRC_FILE' => 10118, 'CURLOPT_NOPROGRESS' => 43, 'CURLOPT_NOPROXY' => 10177, 'CURLOPT_PASSWORD' => 10174, 'CURLOPT_POST' => 47, 'CURLOPT_POSTFIELDS' => 10015, 'CURLOPT_PROXY' => 10004, 'CURLOPT_PROXYAUTH' => 111, 'CURLOPT_PROXYHEADER' => 10228, 'CURLOPT_PROXYUSERPWD' => 10006, 'CURLOPT_PROXY_CAINFO' => 10246, 'CURLOPT_PROXY_CAPATH' => 10247, 'CURLOPT_PROXY_CRLFILE' => 10260, 'CURLOPT_PROXY_KEYPASSWD' => 10258, 'CURLOPT_PROXY_PINNEDPUBLICKEY' => 10263, 'CURLOPT_PROXY_SERVICE_NAME' => 10235, 'CURLOPT_PROXY_SSLCERT' => 10254, 'CURLOPT_PROXY_SSLCERTTYPE' => 10255, 'CURLOPT_PROXY_SSLKEY' => 10256, 'CURLOPT_PROXY_SSLKEYTYPE' => 10257, 'CURLOPT_PROXY_SSL_CIPHER_LIST' => 10259, 'CURLOPT_PROXY_SSL_VERIFYHOST' => 249, 'CURLOPT_PROXY_SSL_VERIFYPEER' => 248, 'CURLOPT_PROXY_TLS13_CIPHERS' => 10277, 'CURLOPT_PROXY_TLSAUTH_PASSWORD' => 10252, 'CURLOPT_PROXY_TLSAUTH_TYPE' => 10253, 'CURLOPT_PROXY_TLSAUTH_USERNAME' => 10251, 'CURLOPT_PUT' => 54, 'CURLOPT_QUOTE' => 10028, 'CURLOPT_RANDOM_FILE' => 10076, 'CURLOPT_RANGE' => 10007, 'CURLOPT_REFERER' => 10016, 'CURLOPT_RESOLVE' => 10203, 'CURLOPT_SASL_AUTHZID' => 10289, 'CURLOPT_SASL_IR' => 218, 'CURLOPT_SERVICE_NAME' => 10236, 'CURLOPT_SOCKS5_AUTH' => 267, 'CURLOPT_SOCKS5_GSSAPI_NEC' => 180, 'CURLOPT_SOCKS5_GSSAPI_SERVICE' => 10179, 'CURLOPT_SSH_COMPRESSION' => 268, 'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5' => 10162, 'CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256' => 10311, 'CURLOPT_SSH_PUBLIC_KEYFILE' => 10152, 'CURLOPT_SSLCERT' => 10025, 'CURLOPT_SSLCERTTYPE' => 10086, 'CURLOPT_SSLENGINE' => 10089, 'CURLOPT_SSLKEY' => 10087, 'CURLOPT_SSLKEYPASSWD' => 10026, 'CURLOPT_SSLKEYTYPE' => 10088, 'CURLOPT_SSLVERSION' => 32, 'CURLOPT_SSL_CIPHER_LIST' => 10083, 'CURLOPT_SSL_EC_CURVES' => 10298, 'CURLOPT_SSL_ENABLE_ALPN' => 226, 'CURLOPT_SSL_ENABLE_NPN' => 225, 'CURLOPT_SSL_FALSESTART' => 233, 'CURLOPT_SSL_SESSIONID_CACHE' => 150, 'CURLOPT_SSL_VERIFYHOST' => 81, 'CURLOPT_SSL_VERIFYPEER' => 64, 'CURLOPT_SSL_VERIFYSTATUS' => 232, 'CURLOPT_STDERR' => 10037, 'CURLOPT_SUPPRESS_CONNECT_HEADERS' => 265, 'CURLOPT_TCP_FASTOPEN' => 244, 'CURLOPT_TCP_KEEPALIVE' => 213, 'CURLOPT_TCP_NODELAY' => 121, 'CURLOPT_TELNETOPTIONS' => 10070, 'CURLOPT_TFTP_BLKSIZE' => 178, 'CURLOPT_TFTP_NO_OPTIONS' => 242, 'CURLOPT_TIMECONDITION' => 33, 'CURLOPT_TIMEOUT' => 13, 'CURLOPT_TIMEOUT_MS' => 155, 'CURLOPT_TLS13_CIPHERS' => 10276, 'CURLOPT_TLSAUTH_PASSWORD' => 10205, 'CURLOPT_TLSAUTH_TYPE' => 10206, 'CURLOPT_TLSAUTH_USERNAME' => 10204, 'CURLOPT_TRANSFER_ENCODING' => 207, 'CURLOPT_UNIX_SOCKET_PATH' => 10231, 'CURLOPT_URL' => 10002, 'CURLOPT_USERAGENT' => 10018, 'CURLOPT_USERNAME' => 10173, 'CURLOPT_USERPWD' => 10005, 'CURLOPT_USE_SSL' => 119, 'CURLOPT_VERBOSE' => 41, 'CURLOPT_XOAUTH2_BEARER' => 10220, 'CURLSSLOPT_ALLOW_BEAST' => 1, 'CURLSSLOPT_AUTO_CLIENT_CERT' => 32, 'CURLSSLOPT_NO_REVOKE' => 2, 'CURLSSLOPT_REVOKE_BEST_EFFORT' => 8, 'CURLOPT_ACCEPTTIMEOUT_MS' => 212, 'CURLOPT_ACCEPT_ENCODING' => 10102, 'CURLOPT_ADDRESS_SCOPE' => 171, 'CURLOPT_ALTSVC_CTRL' => 286, 'CURLOPT_AUTOREFERER' => 58, 'CURLOPT_BINARYTRANSFER' => 19914, 'CURLOPT_BUFFERSIZE' => 98, 'CURLOPT_CAINFO_BLOB' => 40309, 'CURLOPT_CERTINFO' => 172, 'CURLOPT_CONNECTTIMEOUT_MS' => 156, 'CURLOPT_CONNECT_ONLY' => 141, 'CURLOPT_COOKIEFILE' => 10031, 'CURLOPT_COOKIELIST' => 10135, 'CURLOPT_COOKIESESSION' => 96, 'CURLOPT_DEFAULT_PROTOCOL' => 10238, 'CURLOPT_DIRLISTONLY' => 48, 'CURLOPT_DNS_CACHE_TIMEOUT' => 92, 'CURLOPT_DNS_SHUFFLE_ADDRESSES' => 275, 'CURLOPT_DNS_USE_GLOBAL_CACHE' => 91, 'CURLOPT_EGDSOCKET' => 10077, 'CURLOPT_ENCODING' => 10102, 'CURLOPT_FAILONERROR' => 45, 'CURLOPT_FILE' => 10001, 'CURLOPT_FILETIME' => 69, 'CURLOPT_FNMATCH_FUNCTION' => 20200, 'CURLOPT_FOLLOWLOCATION' => 52, 'CURLOPT_FORBID_REUSE' => 75, 'CURLOPT_FRESH_CONNECT' => 74, 'CURLOPT_FTPAPPEND' => 50, 'CURLOPT_FTPLISTONLY' => 48, 'CURLOPT_FTPSSLAUTH' => 129, 'CURLOPT_FTP_RESPONSE_TIMEOUT' => 112, 'CURLOPT_FTP_SSL' => 119, 'CURLOPT_HEADERFUNCTION' => 20079, 'CURLOPT_HEADEROPT' => 229, 'CURLOPT_HSTS_CTRL' => 299, 'CURLOPT_HTTP200ALIASES' => 10104, 'CURLOPT_HTTPAUTH' => 107, 'CURLOPT_HTTPGET' => 80, 'CURLOPT_HTTP_CONTENT_DECODING' => 158, 'CURLOPT_HTTP_TRANSFER_DECODING' => 157, 'CURLOPT_INFILESIZE' => 14, 'CURLOPT_IPRESOLVE' => 113, 'CURLOPT_ISSUERCERT' => 10170, 'CURLOPT_ISSUERCERT_BLOB' => 40295, 'CURLOPT_KEEP_SENDING_ON_ERROR' => 245, 'CURLOPT_KEYPASSWD' => 10026, 'CURLOPT_KRB4LEVEL' => 10063, 'CURLOPT_MAXAGE_CONN' => 288, 'CURLOPT_MAXCONNECTS' => 71, 'CURLOPT_MAXFILESIZE_LARGE' => 30117, 'CURLOPT_MAX_RECV_SPEED_LARGE' => 30146, 'CURLOPT_MAX_SEND_SPEED_LARGE' => 30145, 'CURLOPT_NEW_DIRECTORY_PERMS' => 160, 'CURLOPT_NEW_FILE_PERMS' => 159, 'CURLOPT_NOBODY' => 44, 'CURLOPT_NOSIGNAL' => 99, 'CURLOPT_PATH_AS_IS' => 234, 'CURLOPT_PINNEDPUBLICKEY' => 10230, 'CURLOPT_PIPEWAIT' => 237, 'CURLOPT_PORT' => 3, 'CURLOPT_POSTQUOTE' => 10039, 'CURLOPT_POSTREDIR' => 161, 'CURLOPT_PREQUOTE' => 10093, 'CURLOPT_PRE_PROXY' => 10262, 'CURLOPT_PRIVATE' => 10103, 'CURLOPT_PROGRESSFUNCTION' => 20056, 'CURLOPT_PROTOCOLS' => 181, 'CURLOPT_PROXYPASSWORD' => 10176, 'CURLOPT_PROXYPORT' => 59, 'CURLOPT_PROXYTYPE' => 101, 'CURLOPT_PROXYUSERNAME' => 10175, 'CURLOPT_PROXY_SSLVERSION' => 250, 'CURLOPT_PROXY_CAINFO_BLOB' => 40310, 'CURLOPT_PROXY_ISSUERCERT' => 10296, 'CURLOPT_PROXY_ISSUERCERT_BLOB' => 40297, 'CURLOPT_PROXY_SSLCERT_BLOB' => 40293, 'CURLOPT_PROXY_SSLKEY_BLOB' => 40294, 'CURLOPT_PROXY_SSL_OPTIONS' => 261, 'CURLOPT_PROXY_TRANSFER_MODE' => 166, 'CURLOPT_READDATA' => 10009, 'CURLOPT_READFUNCTION' => 20012, 'CURLOPT_REDIR_PROTOCOLS' => 182, 'CURLOPT_REQUEST_TARGET' => 10266, 'CURLOPT_RESUME_FROM' => 21, 'CURLOPT_RETURNTRANSFER' => 19913, 'CURLOPT_RTSP_CLIENT_CSEQ' => 193, 'CURLOPT_RTSP_REQUEST' => 189, 'CURLOPT_RTSP_SERVER_CSEQ' => 194, 'CURLOPT_RTSP_SESSION_ID' => 10190, 'CURLOPT_RTSP_STREAM_URI' => 10191, 'CURLOPT_RTSP_TRANSPORT' => 10192, 'CURLOPT_SAFE_UPLOAD' => -1, 'CURLOPT_SHARE' => 10100, 'CURLOPT_SSH_AUTH_TYPES' => 151, 'CURLOPT_SSH_KNOWNHOSTS' => 10183, 'CURLOPT_SSH_PRIVATE_KEYFILE' => 10153, 'CURLOPT_SSLCERTPASSWD' => 10026, 'CURLOPT_SSLCERT_BLOB' => 40291, 'CURLOPT_SSLENGINE_DEFAULT' => 90, 'CURLOPT_SSLKEY_BLOB' => 40292, 'CURLOPT_SSL_OPTIONS' => 216, 'CURLOPT_STREAM_WEIGHT' => 239, 'CURLOPT_TCP_KEEPIDLE' => 214, 'CURLOPT_TCP_KEEPINTVL' => 215, 'CURLOPT_TIMEVALUE' => 34, 'CURLOPT_TIMEVALUE_LARGE' => 30270, 'CURLOPT_TRANSFERTEXT' => 53, 'CURLOPT_UNRESTRICTED_AUTH' => 105, 'CURLOPT_UPKEEP_INTERVAL_MS' => 281, 'CURLOPT_UPLOAD' => 46, 'CURLOPT_UPLOAD_BUFFERSIZE' => 280, 'CURLOPT_WILDCARDMATCH' => 197, 'CURLOPT_WRITEFUNCTION' => 20011, 'CURLOPT_WRITEHEADER' => 10029, 'CURLOPT_XFERINFOFUNCTION' => 20219, 'CURLSSLOPT_NATIVE_CA' => 16, 'CURLSSLOPT_NO_PARTIALCHAIN' => 4]
$phpOptions
Curl PHP-to-CLI options
protected
static array<string|int, mixed>
$phpOptions
= [
'CURLOPT_ABSTRACT_UNIX_SOCKET' => '--abstract-unix-socket',
// --abstract-unix-socket <path>
'CURLOPT_ALTSVC' => '--alt-svc',
// --alt-svc <filename>
'CURLOPT_APPEND' => '-a',
'CURLOPT_AWS_SIGV4' => '--aws-sigv4',
// --aws-sigv4 <provider1[:provider2[:region[:service]]]>
'CURLOPT_CAINFO' => '--cacert',
// --cacert <file>
'CURLOPT_CAPATH' => '--capath',
// --capath <dir>
'CURLOPT_CONNECTTIMEOUT' => '--connect-timeout',
// --connect-timeout <fractional seconds>
'CURLOPT_CONNECT_TO' => '--connect-to',
// --connect-to <HOST1:PORT1:HOST2:PORT2>
'CURLOPT_COOKIE' => ['-b', '--cookie'],
// -b, --cookie <data|filename>
'CURLOPT_COOKIEJAR' => ['-c', '--cookie-jar'],
// -c, --cookie-jar <filename>
'CURLOPT_CRLF' => '--crlf',
'CURLOPT_CRLFILE' => '--crlfile',
// --crlfile <file>
'CURLOPT_CUSTOMREQUEST' => ['-X', '--request'],
// -X, --request <method>
'CURLOPT_DISALLOW_USERNAME_IN_URL' => '--disallow-username-in-url',
'CURLOPT_DNS_INTERFACE' => '--dns-interface',
// --dns-interface <interface>
'CURLOPT_DNS_LOCAL_IP4' => '--dns-ipv4-addr',
// --dns-ipv4-addr <address>
'CURLOPT_DNS_LOCAL_IP6' => '--dns-ipv6-addr',
// --dns-ipv6-addr <address>
'CURLOPT_DNS_SERVERS' => '--dns-servers',
// --dns-servers <addresses>
'CURLOPT_DOH_SSL_VERIFYHOST' => ['--doh-insecure', '--no-doh-insecure'],
// Verify the DNS-over-HTTPS server's SSL certificate name fields against the host name. Available as of PHP 8.2.0 and cURL 7.76.0.
'CURLOPT_DOH_SSL_VERIFYPEER' => ['--doh-insecure', '--no-doh-insecure'],
// Verify the authenticity of the DNS-over-HTTPS server's SSL certificate. Available as of PHP 8.2.0 and cURL 7.76.0.
'CURLOPT_DOH_SSL_VERIFYSTATUS' => '--doh-cert-status',
// Tell cURL to verify the status of the DNS-over-HTTPS server certificate using the "Certificate Status Request" TLS extension (OCSP stapling). Available as of PHP 8.2.0 and cURL 7.76.0.
'CURLOPT_DOH_URL' => '--doh-url',
// --doh-url <url> Provides the DNS-over-HTTPS URL. Available as of PHP 8.1.0 and cURL 7.62.0.
'CURLOPT_EXPECT_100_TIMEOUT_MS' => '--expect100-timeout',
// --expect100-timeout <seconds>
'CURLOPT_FTPPORT' => ['-P', '--ftp-port'],
// -P, --ftp-port <address>
'CURLOPT_FTP_ACCOUNT' => '--ftp-account',
// --ftp-account <data>
'CURLOPT_FTP_ALTERNATIVE_TO_USER' => '--ftp-alternative-to-user',
// --ftp-alternative-to-user <command>
'CURLOPT_FTP_CREATE_MISSING_DIRS' => '--ftp-create-dirs',
'CURLOPT_FTP_FILEMETHOD' => '--ftp-method',
// --ftp-method <method>
'CURLOPT_FTP_SKIP_PASV_IP' => ['--ftp-skip-pasv-ip', '--ftp-pasv'],
'CURLOPT_FTP_SSL_CCC' => '--ftp-ssl-ccc',
'CURLOPT_FTP_USE_EPRT' => '--disable-eprt',
'CURLOPT_FTP_USE_EPSV' => '--disable-epsv',
'CURLOPT_FTP_USE_PRET' => '--ftp-pret',
'CURLOPT_GSSAPI_DELEGATION' => '--delegation',
// --delegation <level>
'CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS' => '--happy-eyeballs-timeout-ms',
// --happy-eyeballs-timeout-ms <milliseconds>
'CURLOPT_HAPROXYPROTOCOL' => '--haproxy-protocol',
'CURLOPT_HEADER' => ['-i', '--include'],
'CURLOPT_HSTS' => '--hsts',
// --hsts <filename>
'CURLOPT_HTTP09_ALLOWED' => '--http0.9',
'CURLOPT_HTTPHEADER' => ['-H', '--header'],
// -H, --header <header/@file>
'CURLOPT_HTTPPROXYTUNNEL' => ['-p', '--proxytunnel'],
'CURLOPT_HTTP_VERSION' => ['-0', '--http1.0', '--http1.1', '--http2'],
'CURLOPT_IGNORE_CONTENT_LENGTH' => '--ignore-content-length',
'CURLOPT_INFILE' => ['-T', '--upload-file'],
// -T, --upload-file <file> (Used with PUT)
'CURLOPT_INTERFACE' => '--interface',
// --interface <name>
'CURLOPT_KRBLEVEL' => '--krb',
// --krb <level>
'CURLOPT_LOCALPORT' => '--local-port',
// --local-port <num/range>
'CURLOPT_LOCALPORTRANGE' => '--local-port',
// --local-port <num/range>
'CURLOPT_LOGIN_OPTIONS' => '--login-options',
// --login-options <options>
'CURLOPT_LOW_SPEED_LIMIT' => ['-Y', '--speed-limit'],
// -Y, --speed-limit <speed>
'CURLOPT_LOW_SPEED_TIME' => ['-y', '--speed-time'],
// -y, --speed-time <seconds>
'CURLOPT_MAIL_AUTH' => '--mail-auth',
// --mail-auth <address>
'CURLOPT_MAIL_FROM' => '--mail-from',
// --mail-from <address>
'CURLOPT_MAIL_RCPT' => '--mail-rcpt',
// --mail-rcpt <address>
'CURLOPT_MAIL_RCPT_ALLLOWFAILS' => '--mail-rcpt-allowfails',
'CURLOPT_MAXFILESIZE' => '--max-filesize',
// --max-filesize <bytes>
'CURLOPT_MAXLIFETIME_CONN' => ['-m', '--max-time'],
// -m, --max-time <fractional seconds>
'CURLOPT_MAXREDIRS' => '--max-redirs',
// --max-redirs <num>
'CURLOPT_NETRC' => ['-n', '--netrc'],
'CURLOPT_NETRC_FILE' => '--netrc-file',
// --netrc-file <filename>
'CURLOPT_NOPROGRESS' => '--no-progress-meter',
'CURLOPT_NOPROXY' => '--noproxy',
// --noproxy <no-proxy-list>
'CURLOPT_PASSWORD' => ['-u', '--user'],
// -u, --user <user:password>
'CURLOPT_POST' => ['-X', '--request'],
// -X, --request <method>
'CURLOPT_POSTFIELDS' => ['-d', '-data'],
// -d, --data <data>
'CURLOPT_PROXY' => ['-x', '--proxy'],
// -x, --proxy [protocol://]host[:port]
'CURLOPT_PROXYAUTH' => ['--proxy-basic', '--proxy-digest'],
'CURLOPT_PROXYHEADER' => '--proxy-header',
// --proxy-header <header/@file>
'CURLOPT_PROXYUSERPWD' => ['-U', '--proxy-user'],
// -U, --proxy-user <user:password>
'CURLOPT_PROXY_CAINFO' => '--proxy-cacert',
// --proxy-cacert <file>
'CURLOPT_PROXY_CAPATH' => '--proxy-capath',
// --proxy-capath <dir>
'CURLOPT_PROXY_CRLFILE' => '--proxy-crlfile',
// --proxy-crlfile <file>
'CURLOPT_PROXY_KEYPASSWD' => '--proxy-pass',
// --proxy-pass <phrase>
'CURLOPT_PROXY_PINNEDPUBLICKEY' => '--proxy-pinnedpubkey',
// --proxy-pinnedpubkey <hashes>
'CURLOPT_PROXY_SERVICE_NAME' => '--proxy-service-name',
// --proxy-service-name <name>
'CURLOPT_PROXY_SSLCERT' => '--proxy-cert',
// --proxy-cert <cert[:passwd]>
'CURLOPT_PROXY_SSLCERTTYPE' => '--proxy-cert-type',
// --proxy-cert-type <type>
'CURLOPT_PROXY_SSLKEY' => '--proxy-key',
// --proxy-key <key>
'CURLOPT_PROXY_SSLKEYTYPE' => '--proxy-key-type',
// --proxy-key-type <type>
'CURLOPT_PROXY_SSL_CIPHER_LIST' => '--proxy-ciphers',
// --proxy-ciphers <list>
'CURLOPT_PROXY_SSL_VERIFYHOST' => '--proxy-insecure',
'CURLOPT_PROXY_SSL_VERIFYPEER' => '--proxy-insecure',
'CURLOPT_PROXY_TLS13_CIPHERS' => '--proxy-tls13-ciphers',
// --proxy-tls13-ciphers <ciphersuite list>
'CURLOPT_PROXY_TLSAUTH_PASSWORD' => '--proxy-tlspassword',
// --proxy-tlspassword <string>
'CURLOPT_PROXY_TLSAUTH_TYPE' => '--proxy-tlsauthtype',
// --proxy-tlsauthtype <type>
'CURLOPT_PROXY_TLSAUTH_USERNAME' => '--proxy-tlsuser',
// --proxy-tlsuser <name>
'CURLOPT_PUT' => ['-X', '--request'],
// -X, --request <method>
'CURLOPT_QUOTE' => ['-Q', '--quote'],
// -Q, --quote <command>
'CURLOPT_RANDOM_FILE' => '--random-file',
// --random-file <file>
'CURLOPT_RANGE' => '-r --range',
// -r, --range <range>
'CURLOPT_REFERER' => '-e --referer',
// -e, --referer <url>
'CURLOPT_RESOLVE' => '--resolve',
// --resolve <[+]host:port:addr[,addr]...>
'CURLOPT_SASL_AUTHZID' => '--sasl-authzid',
// --sasl-authzid <identity>
'CURLOPT_SASL_IR' => '--sasl-ir',
'CURLOPT_SERVICE_NAME' => '--service-name',
// --service-name <name>
'CURLOPT_SOCKS5_AUTH' => '--socks5-basic',
'CURLOPT_SOCKS5_GSSAPI_NEC' => '--socks5-gssapi-nec',
'CURLOPT_SOCKS5_GSSAPI_SERVICE' => '--socks5-gssapi-service',
// --socks5-gssapi-service <name>
'CURLOPT_SSH_COMPRESSION' => '--compressed-ssh',
'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5' => '--hostpubmd5',
// --hostpubmd5 <md5>
'CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256' => '--hostpubsha256',
// --hostpubsha256 <sha256>
'CURLOPT_SSH_PUBLIC_KEYFILE' => '--pubkey',
// --pubkey <key>
'CURLOPT_SSLCERT' => ['-E', '--cert'],
// -E, --cert <certificate[:password]>
'CURLOPT_SSLCERTTYPE' => '--cert-type',
// --cert-type <type>
'CURLOPT_SSLENGINE' => '--engine',
// --engine <name>
'CURLOPT_SSLKEY' => '--key',
// --key <key>
'CURLOPT_SSLKEYPASSWD' => '--pass',
// --pass <phrase>
'CURLOPT_SSLKEYTYPE' => '--key-type',
// --key-type <type>
'CURLOPT_SSLVERSION' => ["-2", "--sslv2", "-3", "--sslv3"],
'CURLOPT_SSL_CIPHER_LIST' => '--ciphers',
// --ciphers <list of ciphers> i.e. ECDHE-ECDSA-AES256-CCM8
'CURLOPT_SSL_EC_CURVES' => '--curves',
// --curves <algorithm list>
'CURLOPT_SSL_ENABLE_ALPN' => ['--alpn', '--no-alpn'],
'CURLOPT_SSL_ENABLE_NPN' => ['--npn', '--no-npn'],
'CURLOPT_SSL_FALSESTART' => '--false-start',
'CURLOPT_SSL_SESSIONID_CACHE' => '--no-sessionid',
'CURLOPT_SSL_VERIFYHOST' => ['-k', '--insecure'],
'CURLOPT_SSL_VERIFYPEER' => ['-k', '--insecure'],
'CURLOPT_SSL_VERIFYSTATUS' => '--cert-status',
'CURLOPT_STDERR' => '--stderr',
// --stderr <file>
'CURLOPT_SUPPRESS_CONNECT_HEADERS' => '--suppress-connect-headers',
'CURLOPT_TCP_FASTOPEN' => '--tcp-fastopen',
'CURLOPT_TCP_KEEPALIVE' => '--keepalive-time',
// --keepalive-time <seconds>
'CURLOPT_TCP_NODELAY' => '--tcp-nodelay',
'CURLOPT_TELNETOPTIONS' => ['-t', '--telnet-option'],
// -t, --telnet-option <opt=val>
'CURLOPT_TFTP_BLKSIZE' => '--tftp-blksize',
// --tftp-blksize <value>
'CURLOPT_TFTP_NO_OPTIONS' => '--tftp-no-options',
'CURLOPT_TIMECONDITION' => '-z --time-cond',
// -z, --time-cond <time>
'CURLOPT_TIMEOUT' => '--connect-timeout',
// --connect-timeout <fractional seconds>
'CURLOPT_TIMEOUT_MS' => '--connect-timeout',
// --connect-timeout <fractional seconds> (MS needs to be converted to seconds),
'CURLOPT_TLS13_CIPHERS' => '--tls13-ciphers',
// --tls13-ciphers <ciphersuite list>
'CURLOPT_TLSAUTH_PASSWORD' => '--tlspassword',
// --tlspassword <string>
'CURLOPT_TLSAUTH_TYPE' => '--tlsauthtype',
// --tlsauthtype <type>
'CURLOPT_TLSAUTH_USERNAME' => '--tlsuser',
// --tlsuser <name>
'CURLOPT_TRANSFER_ENCODING' => ['--tr-encoding', '--no-tr-encoding'],
'CURLOPT_UNIX_SOCKET_PATH' => '--unix-socket',
// --unix-socket <path>
'CURLOPT_URL' => '--url',
// --url <url> (Used for config files, unnecessary on the CLI)
'CURLOPT_USERAGENT' => ['-A', '--user-agent'],
// -A, --user-agent <name>
'CURLOPT_USERNAME' => ['-u', '--user'],
// -u, --user <user:password>
'CURLOPT_USERPWD' => ['-u', '--user'],
// -u, --user <user:password>
'CURLOPT_USE_SSL' => ['--ssl', '--ssl-reqd'],
// Attempts to force server to use secure connection',
'CURLOPT_VERBOSE' => ['-v', '--verbose'],
'CURLOPT_XOAUTH2_BEARER' => '--oauth2-bearer',
// --oauth2-bearer <token>
'CURLSSLOPT_ALLOW_BEAST' => '--ssl-allow-beast',
'CURLSSLOPT_AUTO_CLIENT_CERT' => '--ssl-auto-client-cert',
'CURLSSLOPT_NO_REVOKE' => '--ssl-no-revoke',
'CURLSSLOPT_REVOKE_BEST_EFFORT' => '--ssl-revoke-best-effort',
]
$unresolvedOptions
Unresolved Curl options
protected
static array<string|int, mixed>
$unresolvedOptions
= [
'CURLOPT_ACCEPTTIMEOUT_MS',
'CURLOPT_ACCEPT_ENCODING',
'CURLOPT_ADDRESS_SCOPE',
'CURLOPT_ALTSVC_CTRL',
'CURLOPT_AUTOREFERER',
'CURLOPT_BINARYTRANSFER',
'CURLOPT_BUFFERSIZE',
'CURLOPT_CAINFO_BLOB',
'CURLOPT_CERTINFO',
'CURLOPT_CONNECTTIMEOUT_MS',
'CURLOPT_CONNECT_ONLY',
'CURLOPT_COOKIEFILE',
'CURLOPT_COOKIELIST',
'CURLOPT_COOKIESESSION',
'CURLOPT_DEFAULT_PROTOCOL',
'CURLOPT_DIRLISTONLY',
'CURLOPT_DNS_CACHE_TIMEOUT',
'CURLOPT_DNS_SHUFFLE_ADDRESSES',
'CURLOPT_DNS_USE_GLOBAL_CACHE',
'CURLOPT_EGDSOCKET',
'CURLOPT_ENCODING',
'CURLOPT_FAILONERROR',
'CURLOPT_FILE',
'CURLOPT_FILETIME',
'CURLOPT_FNMATCH_FUNCTION',
'CURLOPT_FOLLOWLOCATION',
// This constant is not available when open_basedir is enabled.
'CURLOPT_FORBID_REUSE',
'CURLOPT_FRESH_CONNECT',
'CURLOPT_FTPAPPEND',
'CURLOPT_FTPLISTONLY',
'CURLOPT_FTPSSLAUTH',
'CURLOPT_FTP_RESPONSE_TIMEOUT',
'CURLOPT_FTP_SSL',
'CURLOPT_HEADERFUNCTION',
'CURLOPT_HEADEROPT',
'CURLOPT_HSTS_CTRL',
'CURLOPT_HTTP200ALIASES',
'CURLOPT_HTTPAUTH',
'CURLOPT_HTTPGET',
'CURLOPT_HTTP_CONTENT_DECODING',
'CURLOPT_HTTP_TRANSFER_DECODING',
'CURLOPT_INFILESIZE',
'CURLOPT_IPRESOLVE',
'CURLOPT_ISSUERCERT',
'CURLOPT_ISSUERCERT_BLOB',
// Issuer SSL certificate from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_KEEP_SENDING_ON_ERROR',
'CURLOPT_KEYPASSWD',
'CURLOPT_KRB4LEVEL',
'CURLOPT_MAXAGE_CONN',
'CURLOPT_MAXCONNECTS',
'CURLOPT_MAXFILESIZE_LARGE',
'CURLOPT_MAX_RECV_SPEED_LARGE',
'CURLOPT_MAX_SEND_SPEED_LARGE',
'CURLOPT_NEW_DIRECTORY_PERMS',
'CURLOPT_NEW_FILE_PERMS',
'CURLOPT_NOBODY',
'CURLOPT_NOSIGNAL',
'CURLOPT_PATH_AS_IS',
'CURLOPT_PINNEDPUBLICKEY',
'CURLOPT_PIPEWAIT',
'CURLOPT_PORT',
'CURLOPT_POSTQUOTE',
'CURLOPT_POSTREDIR',
'CURLOPT_PREQUOTE',
'CURLOPT_PRE_PROXY',
'CURLOPT_PRIVATE',
'CURLOPT_PROGRESSFUNCTION',
'CURLOPT_PROTOCOLS',
'CURLOPT_PROXYPASSWORD',
'CURLOPT_PROXYPORT',
'CURLOPT_PROXYTYPE',
'CURLOPT_PROXYUSERNAME',
'CURLOPT_PROXY_SSLVERSION',
'CURLOPT_PROXY_CAINFO_BLOB',
'CURLOPT_PROXY_ISSUERCERT',
// Proxy issuer SSL certificate filename. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_PROXY_ISSUERCERT_BLOB',
// Proxy issuer SSL certificate from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_PROXY_SSLCERT_BLOB',
// SSL proxy client certificate from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_PROXY_SSLKEY_BLOB',
// Private key for proxy cert from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_PROXY_SSL_OPTIONS',
'CURLOPT_PROXY_TRANSFER_MODE',
'CURLOPT_READDATA',
'CURLOPT_READFUNCTION',
'CURLOPT_REDIR_PROTOCOLS',
'CURLOPT_REQUEST_TARGET',
'CURLOPT_RESUME_FROM',
'CURLOPT_RETURNTRANSFER',
'CURLOPT_RTSP_CLIENT_CSEQ',
'CURLOPT_RTSP_REQUEST',
'CURLOPT_RTSP_SERVER_CSEQ',
'CURLOPT_RTSP_SESSION_ID',
'CURLOPT_RTSP_STREAM_URI',
'CURLOPT_RTSP_TRANSPORT',
'CURLOPT_SAFE_UPLOAD',
'CURLOPT_SHARE',
'CURLOPT_SSH_AUTH_TYPES',
'CURLOPT_SSH_KNOWNHOSTS',
'CURLOPT_SSH_PRIVATE_KEYFILE',
'CURLOPT_SSLCERTPASSWD',
'CURLOPT_SSLCERT_BLOB',
// SSL client certificate from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_SSLENGINE_DEFAULT',
'CURLOPT_SSLKEY_BLOB',
// Private key for client cert from memory blob. Available as of PHP 8.1.0 and cURL 7.71.0.
'CURLOPT_SSL_OPTIONS',
'CURLOPT_STREAM_WEIGHT',
'CURLOPT_TCP_KEEPIDLE',
'CURLOPT_TCP_KEEPINTVL',
'CURLOPT_TIMEVALUE',
'CURLOPT_TIMEVALUE_LARGE',
'CURLOPT_TRANSFERTEXT',
'CURLOPT_UNRESTRICTED_AUTH',
'CURLOPT_UPKEEP_INTERVAL_MS',
'CURLOPT_UPLOAD',
'CURLOPT_UPLOAD_BUFFERSIZE',
'CURLOPT_WILDCARDMATCH',
'CURLOPT_WRITEFUNCTION',
'CURLOPT_WRITEHEADER',
'CURLOPT_XFERINFOFUNCTION',
'CURLSSLOPT_NATIVE_CA',
'CURLSSLOPT_NO_PARTIALCHAIN',
]
These are Curl options in PHP that have not yet been mapped to a CLI option
$valueOptions
Curl options that require a value
protected
static array<string|int, mixed>
$valueOptions
= [
'--abstract-unix-socket' => null,
// --abstract-unix-socket <path>
'--alt-svc' => null,
// --alt-svc <filename>
'--aws-sigv4' => null,
// --aws-sigv4 <provider1[:provider2[:region[:service]]]>[
'--cacert' => null,
// --cacert <file>
'--capath' => null,
// --capath <dir>
'--connect-timeout' => null,
// --connect-timeout <fractional seconds> (MS needs to be converted to seconds)
'--connect-to' => null,
// --connect-to <HOST1:PORT1:HOST2:PORT2>
'-b' => null,
// -b, --cookie <data|filename>
'--cookie' => null,
// -b, --cookie <data|filename>
'-c' => null,
// -c, --cookie-jar <filename>
'--cookie-jar' => null,
// -c, --cookie-jar <filename>
'--crlfile' => null,
// --crlfile <file>
'-X' => null,
// -X, --request <method>
'--request' => null,
// -X, --request <method>
'--dns-interface' => null,
// --dns-interface <interface>
'--dns-ipv4-addr' => null,
// --dns-ipv4-addr <address>
'--dns-ipv6-addr' => null,
// --dns-ipv6-addr <address>
'--dns-servers' => null,
// --dns-servers <addresses>
'--doh-insecure' => null,
// Verify the DNS-over-HTTPS server's SSL certificate name fields against the host name and certificate. Available as of PHP 8.2.0 and cURL 7.76.0.
'--no-doh-insecure' => null,
// Verify the DNS-over-HTTPS server's SSL certificate name fields against the host name and certificate. Available as of PHP 8.2.0 and cURL 7.76.0.
'--doh-cert-status' => null,
// Tell cURL to verify the status of the DNS-over-HTTPS server certificate using the "Certificate Status Request" TLS extension (OCSP stapling). Available as of PHP 8.2.0 and cURL 7.76.0.
'--doh-url' => null,
// --doh-url <url> Provides the DNS-over-HTTPS URL. Available as of PHP 8.1.0 and cURL 7.62.0.
'--expect100-timeout' => null,
// --expect100-timeout <seconds>
'-P' => null,
// -P, --ftp-port <address>
'--ftp-port' => null,
// -P, --ftp-port <address>
'--ftp-account' => null,
// --ftp-account <data>
'--ftp-alternative-to-user' => null,
// --ftp-alternative-to-user <command>
'--ftp-method' => null,
// --ftp-method <method>
'--delegation' => null,
// --delegation <level>
'--happy-eyeballs-timeout-ms' => null,
// --happy-eyeballs-timeout-ms <milliseconds>
'--hsts' => null,
// --hsts <filename>
'-H' => null,
// -H, --header <header/@file>
'--header' => null,
// -H, --header <header/@file>
'-0' => CURL_HTTP_VERSION_1_0,
// CURL HTTP Version constant
'--http1.0' => CURL_HTTP_VERSION_1_0,
// CURL HTTP Version constant
'--http1.1' => CURL_HTTP_VERSION_1_1,
// CURL HTTP Version constant
'--http2' => CURL_HTTP_VERSION_2_0,
// CURL HTTP Version constant
'-T' => null,
// -T, --upload-file <file> (Used with PUT)
'--upload-file' => null,
// -T, --upload-file <file> (Used with PUT)
'--interface' => null,
// --interface <name>
'--krb' => null,
// --krb <level>
'--local-port' => null,
// --local-port <num/range>
'--login-options' => null,
// --login-options <options>
'-Y' => null,
// -Y, --speed-limit <speed>
'--speed-limit' => null,
// -Y, --speed-limit <speed>
'-y' => null,
// -y, --speed-time <seconds>
'--speed-time' => null,
// -y, --speed-time <seconds>
'--mail-auth' => null,
// --mail-auth <address>
'--mail-from' => null,
// --mail-from <address>
'--mail-rcpt' => null,
// --mail-rcpt <address>
'--max-filesize' => null,
// --max-filesize <bytes>
'-m' => null,
// -m, --max-time <fractional seconds>
'--max-time' => null,
// -m, --max-time <fractional seconds>
'--max-redirs' => null,
// --max-redirs <num>
'--netrc-file' => null,
// --netrc-file <filename>
'--noproxy' => null,
// --noproxy <no-proxy-list>
'-u' => null,
// -u, --user <user:password>
'--user' => null,
// -u, --user <user:password>
'-d' => null,
// -d, --data <data>
'-data' => null,
// -d, --data <data>
'-x' => null,
// -x, --proxy [protocol://]host[:port]
'--proxy' => null,
// -x, --proxy [protocol://]host[:port]
'--proxy-basic' => CURLAUTH_BASIC,
// CURL Auth constant
'--proxy-digest' => CURLAUTH_DIGEST,
// CURL Auth constant
'--proxy-header' => null,
// --proxy-header <header/@file>
'-U' => null,
// -U, --proxy-user <user:password>
'--proxy-user' => null,
// -U, --proxy-user <user:password>
'--proxy-cacert' => null,
// --proxy-cacert <file>
'--proxy-capath' => null,
// --proxy-capath <dir>
'--proxy-crlfile' => null,
// --proxy-crlfile <file>
'--proxy-pass' => null,
// --proxy-pass <phrase>
'--proxy-pinnedpubkey' => null,
// --proxy-pinnedpubkey <hashes>
'--proxy-service-name' => null,
// --proxy-service-name <name>
'--proxy-cert' => null,
// --proxy-cert <cert[:passwd]>
'--proxy-cert-type' => null,
// --proxy-cert-type <type>
'--proxy-key' => null,
// --proxy-key <key>
'--proxy-key-type' => null,
// --proxy-key-type <type>
'--proxy-ciphers' => null,
// --proxy-ciphers <list>
'--proxy-tls13-ciphers' => null,
// --proxy-tls13-ciphers <ciphersuite list>
'--proxy-tlspassword' => null,
// --proxy-tlspassword <string>
'--proxy-tlsauthtype' => null,
// --proxy-tlsauthtype <type>
'--proxy-tlsuser' => null,
// --proxy-tlsuser <name>
'-Q' => null,
// -Q, --quote <command>
'--quote' => null,
// -Q, --quote <command>
'--random-file' => null,
// --random-file <file>
'-r' => null,
// -r, --range <range>
'--range' => null,
// -r, --range <range>
'-e' => null,
// -e, --referer <url>
'--referer' => null,
// -e, --referer <url>
'--resolve' => null,
// --resolve <[+]host:port:addr[,addr]...>
'--sasl-authzid' => null,
// --sasl-authzid <identity>
'--service-name' => null,
// --service-name <name>
'--socks5-gssapi-service' => null,
// --socks5-gssapi-service <name>
'--hostpubmd5' => null,
// --hostpubmd5 <md5>
'--hostpubsha256' => null,
// --hostpubsha256 <sha256>
'--pubkey' => null,
// --pubkey <key>
'-E' => null,
// -E, --cert <certificate[:password]>
'--cert' => null,
// -E, --cert <certificate[:password]>
'--cert-type' => null,
// --cert-type <type>
'--engine' => null,
// --engine <name>
'--key' => null,
// --key <key>
'--pass' => null,
// --pass <phrase>
'--key-type' => null,
// --key-type <type>
'-2' => CURL_SSLVERSION_SSLv2,
// CURL SSL Version contstant
'--sslv2' => CURL_SSLVERSION_SSLv2,
// CURL SSL Version contstant
'-3' => CURL_SSLVERSION_SSLv3,
// CURL SSL Version contstant
'--sslv3' => CURL_SSLVERSION_SSLv3,
// CURL SSL Version contstant
'--ciphers' => null,
// --ciphers <list of ciphers> i.e. ECDHE-ECDSA-AES256-CCM8
'--curves' => null,
// --curves <algorithm list>
'--stderr' => null,
// --stderr <file>
'--keepalive-time' => null,
// --keepalive-time <seconds>
'-t' => null,
// -t, --telnet-option <opt=val>
'--telnet-option' => null,
// -t, --telnet-option <opt=val>
'--tftp-blksize' => null,
// --tftp-blksize <value>
'-z --time-cond' => null,
// -z, --time-cond <time>
'--tls13-ciphers' => null,
// --tls13-ciphers <ciphersuite list>
'--tlspassword' => null,
// --tlspassword <string>
'--tlsauthtype' => null,
// --tlsauthtype <type>
'--tlsuser' => null,
// --tlsuser <name>
'--unix-socket' => null,
// --unix-socket <path>
'--url' => null,
// --url <url> (Used for config files, unnecessary on the CLI)
'-A' => null,
// -A, --user-agent <name>
'--user-agent' => null,
// -A, --user-agent <name>
'--oauth2-bearer' => null,
// --oauth2-bearer <token>
'CURLOPT_ABSTRACT_UNIX_SOCKET' => null,
// --abstract-unix-socket <path>
'CURLOPT_ALTSVC' => null,
// --alt-svc <filename>
'CURLOPT_AWS_SIGV4' => null,
// --aws-sigv4 <provider1[:provider2[:region[:service]]]>
'CURLOPT_CAINFO' => null,
// --cacert <file>
'CURLOPT_CAPATH' => null,
// --capath <dir>
'CURLOPT_CONNECTTIMEOUT' => null,
// --connect-timeout <fractional seconds>
'CURLOPT_CONNECT_TO' => null,
// --connect-to <HOST1:PORT1:HOST2:PORT2>
'CURLOPT_COOKIE' => null,
// -b, --cookie <data|filename>
'CURLOPT_COOKIEJAR' => null,
// -c, --cookie-jar <filename>
'CURLOPT_CRLFILE' => null,
// --crlfile <file>
'CURLOPT_CUSTOMREQUEST' => null,
// -X, --request <method>
'CURLOPT_DNS_INTERFACE' => null,
// --dns-interface <interface>
'CURLOPT_DNS_LOCAL_IP4' => null,
// --dns-ipv4-addr <address>
'CURLOPT_DNS_LOCAL_IP6' => null,
// --dns-ipv6-addr <address>
'CURLOPT_DNS_SERVERS' => null,
// --dns-servers <addresses>
'CURLOPT_DOH_URL' => null,
// --doh-url <url> Provides the DNS-over-HTTPS URL. Available as of PHP 8.1.0 and cURL 7.62.0.
'CURLOPT_EXPECT_100_TIMEOUT_MS' => null,
// --expect100-timeout <seconds>
'CURLOPT_FTPPORT' => null,
// -P, --ftp-port <address>
'CURLOPT_FTP_ACCOUNT' => null,
// --ftp-account <data>
'CURLOPT_FTP_ALTERNATIVE_TO_USER' => null,
// --ftp-alternative-to-user <command>
'CURLOPT_FTP_FILEMETHOD' => null,
// --ftp-method <method>
'CURLOPT_GSSAPI_DELEGATION' => null,
// --delegation <level>
'CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS' => null,
// --happy-eyeballs-timeout-ms <milliseconds>
'CURLOPT_HSTS' => null,
// --hsts <filename>
'CURLOPT_HTTPHEADER' => null,
// -H, --header <header/@file>
'CURLOPT_HTTP_VERSION' => [CURL_HTTP_VERSION_1_0, CURL_HTTP_VERSION_1_0, CURL_HTTP_VERSION_1_1, CURL_HTTP_VERSION_2_0],
// CURL HTTP version constant
'CURLOPT_INFILE' => null,
// -T, --upload-file <file> (Used with PUT)
'CURLOPT_INTERFACE' => null,
// --interface <name>
'CURLOPT_KRBLEVEL' => null,
// --krb <level>
'CURLOPT_LOCALPORT' => null,
// --local-port <num/range>
'CURLOPT_LOCALPORTRANGE' => null,
// --local-port <num/range>
'CURLOPT_LOGIN_OPTIONS' => null,
// --login-options <options>
'CURLOPT_LOW_SPEED_LIMIT' => null,
// -Y, --speed-limit <speed>
'CURLOPT_LOW_SPEED_TIME' => null,
// -y, --speed-time <seconds>
'CURLOPT_MAIL_AUTH' => null,
// --mail-auth <address>
'CURLOPT_MAIL_FROM' => null,
// --mail-from <address>
'CURLOPT_MAIL_RCPT' => null,
// --mail-rcpt <address>
'CURLOPT_MAXFILESIZE' => null,
// --max-filesize <bytes>
'CURLOPT_MAXLIFETIME_CONN' => null,
// -m, --max-time <fractional seconds>
'CURLOPT_MAXREDIRS' => null,
// --max-redirs <num>
'CURLOPT_NETRC_FILE' => null,
// --netrc-file <filename>
'CURLOPT_NOPROXY' => null,
// --noproxy <no-proxy-list>
'CURLOPT_PASSWORD' => null,
// -u, --user <user:password>
'CURLOPT_POST' => null,
// -X, --request <method>
'CURLOPT_POSTFIELDS' => null,
// -d, --data <data>
'CURLOPT_PROXY' => null,
// -x, --proxy [protocol://]host[:port]
'CURLOPT_PROXYAUTH' => [CURLAUTH_BASIC, CURLAUTH_DIGEST],
// CURL Auth Constant
'CURLOPT_PROXYHEADER' => null,
// --proxy-header <header/@file>
'CURLOPT_PROXYUSERPWD' => null,
// -U, --proxy-user <user:password>
'CURLOPT_PROXY_CAINFO' => null,
// --proxy-cacert <file>
'CURLOPT_PROXY_CAPATH' => null,
// --proxy-capath <dir>
'CURLOPT_PROXY_CRLFILE' => null,
// --proxy-crlfile <file>
'CURLOPT_PROXY_KEYPASSWD' => null,
// --proxy-pass <phrase>
'CURLOPT_PROXY_PINNEDPUBLICKEY' => null,
// --proxy-pinnedpubkey <hashes>
'CURLOPT_PROXY_SERVICE_NAME' => null,
// --proxy-service-name <name>
'CURLOPT_PROXY_SSLCERT' => null,
// --proxy-cert <cert[:passwd]>
'CURLOPT_PROXY_SSLCERTTYPE' => null,
// --proxy-cert-type <type>
'CURLOPT_PROXY_SSLKEY' => null,
// --proxy-key <key>
'CURLOPT_PROXY_SSLKEYTYPE' => null,
// --proxy-key-type <type>
'CURLOPT_PROXY_SSL_CIPHER_LIST' => null,
// --proxy-ciphers <list>
'CURLOPT_PROXY_TLS13_CIPHERS' => null,
// --proxy-tls13-ciphers <ciphersuite list>
'CURLOPT_PROXY_TLSAUTH_PASSWORD' => null,
// --proxy-tlspassword <string>
'CURLOPT_PROXY_TLSAUTH_TYPE' => null,
// --proxy-tlsauthtype <type>
'CURLOPT_PROXY_TLSAUTH_USERNAME' => null,
// --proxy-tlsuser <name>
'CURLOPT_PUT' => null,
// -X, --request <method>
'CURLOPT_QUOTE' => null,
// -Q, --quote <command>
'CURLOPT_RANDOM_FILE' => null,
// --random-file <file>
'CURLOPT_RANGE' => null,
// -r, --range <range>
'CURLOPT_REFERER' => null,
// -e, --referer <url>
'CURLOPT_RESOLVE' => null,
// --resolve <[+]host:port:addr[,addr]...>
'CURLOPT_SASL_AUTHZID' => null,
// --sasl-authzid <identity>
'CURLOPT_SERVICE_NAME' => null,
// --service-name <name>
'CURLOPT_SOCKS5_GSSAPI_SERVICE' => null,
// --socks5-gssapi-service <name>
'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5' => null,
// --hostpubmd5 <md5>
'CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256' => null,
// --hostpubsha256 <sha256>
'CURLOPT_SSH_PUBLIC_KEYFILE' => null,
// --pubkey <key>
'CURLOPT_SSLCERT' => null,
// -E, --cert <certificate[:password]>
'CURLOPT_SSLCERTTYPE' => null,
// --cert-type <type>
'CURLOPT_SSLENGINE' => null,
// --engine <name>
'CURLOPT_SSLKEY' => null,
// --key <key>
'CURLOPT_SSLKEYPASSWD' => null,
// --pass <phrase>
'CURLOPT_SSLKEYTYPE' => null,
// --key-type <type>
'CURLOPT_SSLVERSION' => [CURL_SSLVERSION_SSLv2, CURL_SSLVERSION_SSLv2, CURL_SSLVERSION_SSLv3, CURL_SSLVERSION_SSLv3],
// CURL SSL Version constant
'CURLOPT_SSL_CIPHER_LIST' => null,
// --ciphers <list of ciphers> i.e. ECDHE-ECDSA-AES256-CCM8
'CURLOPT_SSL_EC_CURVES' => null,
// --curves <algorithm list>
'CURLOPT_STDERR' => null,
// --stderr <file>
'CURLOPT_TCP_KEEPALIVE' => null,
// --keepalive-time <seconds>
'CURLOPT_TELNETOPTIONS' => null,
// -t, --telnet-option <opt=val>
'CURLOPT_TFTP_BLKSIZE' => null,
// --tftp-blksize <value>
'CURLOPT_TIMECONDITION' => null,
// -z, --time-cond <time>
'CURLOPT_TIMEOUT' => null,
// --connect-timeout <fractional seconds>
'CURLOPT_TIMEOUT_MS' => null,
// --connect-timeout <fractional seconds> (MS needs to be converted to seconds),
'CURLOPT_TLS13_CIPHERS' => null,
// --tls13-ciphers <ciphersuite list>
'CURLOPT_TLSAUTH_PASSWORD' => null,
// --tlspassword <string>
'CURLOPT_TLSAUTH_TYPE' => null,
// --tlsauthtype <type>
'CURLOPT_TLSAUTH_USERNAME' => null,
// --tlsuser <name>
'CURLOPT_UNIX_SOCKET_PATH' => null,
// --unix-socket <path>
'CURLOPT_URL' => null,
// --url <url> (Used for config files, unnecessary on the CLI)
'CURLOPT_USERAGENT' => null,
// -A, --user-agent <name>
'CURLOPT_USERNAME' => null,
// -u, --user <user:password>
'CURLOPT_USERPWD' => null,
// -u, --user <user:password>
'CURLOPT_XOAUTH2_BEARER' => null,
]
Methods
getCommandOption()
Get CLI option
public
static getCommandOption(string $option) : string|array<string|int, mixed>|null
Parameters
- $option : string
Return values
string|array<string|int, mixed>|nullgetCommandOptions()
Get the CLI options
public
static getCommandOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getOmitOptions()
Get the omit options
public
static getOmitOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getOptionNameByValue()
Get the option name by value
public
static getOptionNameByValue(int $curlValue) : string|null
Parameters
- $curlValue : int
Return values
string|nullgetOptionValueByName()
Get the option value by name
public
static getOptionValueByName(string $curlOption) : int|null
Parameters
- $curlOption : string
Return values
int|nullgetPhpOption()
Get Php option
public
static getPhpOption(string $option) : string|array<string|int, mixed>|null
Parameters
- $option : string
Return values
string|array<string|int, mixed>|nullgetPhpOptions()
Get the PHP options
public
static getPhpOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getValueOption()
Get value option
public
static getValueOption(string $option) : mixed
Parameters
- $option : string
getValueOptions()
Get the value options
public
static getValueOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>hasOptionNameByValue()
Has the option name by value
public
static hasOptionNameByValue(int $curlValue) : bool
Parameters
- $curlValue : int
Return values
boolhasOptionValueByName()
Has the option value by name
public
static hasOptionValueByName(string $curlOption) : bool
Parameters
- $curlOption : string
Return values
boolisBooleanOption()
Check if the option is a boolean option
public
static isBooleanOption(string $option) : bool
Parameters
- $option : string
Return values
boolisCommandOption()
Check if the option is a valid CLI option
public
static isCommandOption(string $option) : bool
Parameters
- $option : string
Return values
boolisOmitOption()
Is omit option
public
static isOmitOption(string $option) : bool
Parameters
- $option : string
Return values
boolisPhpOption()
Check if the option is a valid PHP option
public
static isPhpOption(string $option) : bool
Parameters
- $option : string
Return values
boolisValidOption()
Check if the option is valid
public
static isValidOption(string $option) : bool
Parameters
- $option : string
Return values
boolisValueOption()
Check if the option requires a value
public
static isValueOption(string $option) : bool
Parameters
- $option : string