The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
Descriptions and uses for these constants are described within the curl_setopt(), curl_multi_setopt() and curl_getinfo() documentation.
Constants | Description |
---|---|
CURLALTSVC_H1
(int)
|
Available as of PHP 8.2.0 and cURL 7.64.1. |
CURLALTSVC_H2
(int)
|
Available as of PHP 8.2.0 and cURL 7.64.1. |
CURLALTSVC_H3
(int)
|
Available as of PHP 8.2.0 and cURL 7.64.1. |
CURLALTSVC_READONLYFILE
(int)
|
Available as of PHP 8.2.0 and cURL 7.64.1. |
CURLAUTH_ANY
(int)
|
|
CURLAUTH_ANYSAFE
(int)
|
|
CURLAUTH_AWS_SIGV4
(int)
|
Available as of PHP 8.2.0 and cURL 7.75.0. |
CURLAUTH_BASIC
(int)
|
|
CURLAUTH_BEARER
(int)
|
Available as of PHP 7.3.0 and cURL 7.61.0. |
CURLAUTH_DIGEST
(int)
|
|
CURLAUTH_DIGEST_IE
(int)
|
Use HTTP Digest authentication with an IE flavor. Available as of cURL 7.19.3. |
CURLAUTH_GSSAPI
(int)
|
Available as of PHP 7.3.0 and cURL 7.54.1 |
CURLAUTH_GSSNEGOTIATE
(int)
|
|
CURLAUTH_NEGOTIATE
(int)
|
Available as of PHP 7.0.7 and cURL 7.38.0. |
CURLAUTH_NONE
(int)
|
Available as of cURL 7.10.6. |
CURLAUTH_NTLM
(int)
|
|
CURLAUTH_NTLM_WB
(int)
|
Available as of PHP 7.0.7 and cURL 7.22.0 |
CURLAUTH_ONLY
(int)
|
This is a meta symbol. OR this value together with a single specific auth value to force libcurl to probe for unrestricted auth and if not, only that single auth algorithm is acceptable. Available as of cURL 7.21.3. |
CURLFTPAUTH_DEFAULT
(int)
|
|
CURLFTPAUTH_SSL
(int)
|
|
CURLFTPAUTH_TLS
(int)
|
|
CURLFTPMETHOD_DEFAULT
(int)
|
Available as of PHP 8.2.0 and cURL 7.15.3. |
CURLFTPMETHOD_MULTICWD
(int)
|
Do a single CWD operation
for each path part in the given URL.
Available as of cURL 7.15.3.
|
CURLFTPMETHOD_NOCWD
(int)
|
libcurl makes no CWD at all.
libcurl does SIZE , RETR ,
STOR etc.
and gives a full path to the server for all these commands.
Available as of cURL 7.15.3.
|
CURLFTPMETHOD_SINGLECWD
(int)
|
libcurl does one CWD with the full target directory
and then operates on the file like in the multicwd case.
Available as of cURL 7.15.3.
|
CURLFTPSSL_ALL
(int)
|
|
CURLFTPSSL_CCC_ACTIVE
(int)
|
Initiate the shutdown and wait for a reply. Available as of cURL 7.16.2. |
CURLFTPSSL_CCC_NONE
(int)
|
Do not attempt to use CCC (Clear Command Channel). Available as of cURL 7.16.2. |
CURLFTPSSL_CCC_PASSIVE
(int)
|
Do not initiate the shutdown, but wait for the server to do it. Do not send a reply. Available as of cURL 7.16.1. |
CURLFTPSSL_CONTROL
(int)
|
|
CURLFTPSSL_NONE
(int)
|
|
CURLFTPSSL_TRY
(int)
|
|
CURLFTP_CREATE_DIR
(int)
|
Available as of PHP 7.0.7 and cURL 7.19.3 |
CURLFTP_CREATE_DIR_NONE
(int)
|
Available as of PHP 7.0.7 and cURL 7.19.3 |
CURLFTP_CREATE_DIR_RETRY
(int)
|
Available as of PHP 7.0.7 and cURL 7.19.3 |
CURLGSSAPI_DELEGATION_FLAG
(int)
|
Allow unconditional GSSAPI credential delegation. Available as of cURL 7.22.0. |
CURLGSSAPI_DELEGATION_POLICY_FLAG
(int)
|
Delegate only if the OK-AS-DELEGATE flag is set
in the service ticket if this feature is supported by the GSS-API implementation
and the definition of GSS_C_DELEG_POLICY_FLAG
was available at compile-time.
Available as of cURL 7.22.0.
|
CURLHEADER_SEPARATE
(int)
|
Available as of PHP 7.0.7 and cURL 7.37.0. |
CURLHEADER_UNIFIED
(int)
|
Available as of PHP 7.0.7 and cURL 7.37.0. |
CURLHSTS_ENABLE
(int)
|
Available as of PHP 8.2.0 and cURL 7.74.0 |
CURLHSTS_READONLYFILE
(int)
|
Available as of PHP 8.2.0 and cURL 7.74.0 |
CURLKHMATCH_LAST
(int)
|
Available as of PHP 8.3.0 and cURL 7.19.6 |
CURLKHMATCH_MISMATCH
(int)
|
Available as of PHP 8.3.0 and cURL 7.19.6 |
CURLKHMATCH_MISSING
(int)
|
Available as of PHP 8.3.0 and cURL 7.19.6 |
CURLKHMATCH_OK
(int)
|
Available as of PHP 8.3.0 and cURL 7.19.6 |
CURLMIMEOPT_FORMESCAPE
(int)
|
Available as of PHP 8.3.0 and cURL 7.81.0 |
CURLMSG_DONE
(int)
|
|
CURLPIPE_HTTP1
(int)
|
Available as of cURL 7.43.0. |
CURLPIPE_MULTIPLEX
(int)
|
Available as of cURL 7.43.0. |
CURLPIPE_NOTHING
(int)
|
Available as of cURL 7.43.0. |
CURLPROXY_HTTP
(int)
|
Available as of cURL 7.10. |
CURLPROXY_HTTPS
(int)
|
Available as of PHP 7.3.0 and cURL 7.52.0 |
CURLPROXY_HTTP_1_0
(int)
|
Available as of PHP 7.0.7 and cURL 7.19.3 |
CURLPROXY_SOCKS4
(int)
|
Available as of cURL 7.10. |
CURLPROXY_SOCKS4A
(int)
|
Available as of cURL 7.18.0. |
CURLPROXY_SOCKS5
(int)
|
Available as of cURL 7.10. |
CURLPROXY_SOCKS5_HOSTNAME
(int)
|
Available as of cURL 7.18.0. |
CURLPX_BAD_ADDRESS_TYPE
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_BAD_VERSION
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_CLOSED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_GSSAPI
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_GSSAPI_PERMSG
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_GSSAPI_PROTECTION
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_IDENTD
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_IDENTD_DIFFER
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_LONG_HOSTNAME
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_LONG_PASSWD
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_LONG_USER
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_NO_AUTH
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_OK
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_RECV_ADDRESS
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_RECV_AUTH
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_RECV_CONNECT
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_RECV_REQACK
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_COMMAND_NOT_SUPPORTED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_CONNECTION_REFUSED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_GENERAL_SERVER_FAILURE
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_HOST_UNREACHABLE
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_NETWORK_UNREACHABLE
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_NOT_ALLOWED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_TTL_EXPIRED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REPLY_UNASSIGNED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_REQUEST_FAILED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_RESOLVE_HOST
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_SEND_AUTH
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_SEND_CONNECT
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_SEND_REQUEST
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_UNKNOWN_FAIL
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_UNKNOWN_MODE
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLPX_USER_REJECTED
(int)
|
Available as of PHP 8.2.0 and cURL 7.73.0 |
CURLSSH_AUTH_AGENT
(int)
|
Available as of PHP 7.0.7 and cURL 7.28.0 |
CURLSSH_AUTH_ANY
(int)
|
|
CURLSSH_AUTH_DEFAULT
(int)
|
|
CURLSSH_AUTH_GSSAPI
(int)
|
Available as of PHP 7.3.0 and cURL 7.58.0 |
CURLSSH_AUTH_HOST
(int)
|
|
CURLSSH_AUTH_KEYBOARD
(int)
|
|
CURLSSH_AUTH_NONE
(int)
|
|
CURLSSH_AUTH_PASSWORD
(int)
|
|
CURLSSH_AUTH_PUBLICKEY
(int)
|
|
CURLSSLOPT_ALLOW_BEAST
(int)
|
Available as of cURL 7.25.0 |
CURLSSLOPT_AUTO_CLIENT_CERT
(int)
|
Available as of PHP 8.2.0 and cURL 7.77.0 |
CURLSSLOPT_NATIVE_CA
(int)
|
Available as of PHP 8.2.0 and cURL 7.71.0 |
CURLSSLOPT_NO_PARTIALCHAIN
(int)
|
Available as of PHP 8.2.0 and cURL 7.68.0 |
CURLSSLOPT_NO_REVOKE
(int)
|
Available as of PHP 7.0.7 and cURL 7.44.0 |
CURLSSLOPT_REVOKE_BEST_EFFORT
(int)
|
Available as of PHP 8.2.0 and cURL 7.70.0 |
CURLUSESSL_ALL
(int)
|
Require SSL for all communication
or fail with CURLE_USE_SSL_FAILED .
Available as of cURL 7.17.0.
|
CURLUSESSL_CONTROL
(int)
|
Require SSL for the control connection
or fail with CURLE_USE_SSL_FAILED .
Available as of cURL 7.17.0.
|
CURLUSESSL_NONE
(int)
|
Do not attempt to use SSL. Available as of cURL 7.17.0. |
CURLUSESSL_TRY
(int)
|
Try using SSL, proceed as normal otherwise. Note that server may close the connection if the negotiation does not succeed. Available as of cURL 7.17.0. |
CURLVERSION_NOW
(int)
|
|