以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。
これらの定数についての説明や実際の使用法は、 curl_setopt() および curl_getinfo() のドキュメントを参照ください。
CURLOPT_AUTOREFERER
(int)
CURLOPT_DOH_URL
(int)
CURLOPT_DNS_USE_GLOBAL_CACHE
(int)
CURLOPT_DNS_CACHE_TIMEOUT
(int)
CURLOPT_FTP_SSL
(int)
CURLFTP_CREATE_DIR
(int)
CURLFTP_CREATE_DIR_NONE
(int)
CURLFTP_CREATE_DIR_RETRY
(int)
CURLFTPSSL_TRY
(int)
CURLFTPSSL_ALL
(int)
CURLFTPSSL_CONTROL
(int)
CURLFTPSSL_NONE
(int)
CURLOPT_PRIVATE
(int)
CURLOPT_FTPSSLAUTH
(int)
CURLOPT_PORT
(int)
CURLOPT_FILE
(int)
CURLOPT_INFILE
(int)
CURLOPT_INFILESIZE
(int)
CURLOPT_ISSUERCERT_BLOB
(int)
CURLOPT_URL
(int)
CURLOPT_PROXY
(int)
CURLOPT_PROXY_ISSUERCERT
(int)
CURLOPT_PROXY_ISSUERCERT_BLOB
(int)
CURLOPT_PROXY_SSLCERT_BLOB
(int)
CURLOPT_PROXY_SSLKEY_BLOB
(int)
CURLOPT_VERBOSE
(int)
CURLOPT_HEADER
(int)
CURLOPT_HTTPHEADER
(int)
CURLOPT_NOPROGRESS
(int)
CURLOPT_NOBODY
(int)
CURLOPT_FAILONERROR
(int)
CURLOPT_UPLOAD
(int)
CURLOPT_POST
(int)
CURLOPT_FTPLISTONLY
(int)
CURLOPT_FTPAPPEND
(int)
CURLOPT_FTP_CREATE_MISSING_DIRS
(int)
CURLOPT_NETRC
(int)
CURLOPT_FOLLOWLOCATION
(int)
CURLOPT_FTPASCII
(int)
CURLOPT_PUT
(int)
CURLOPT_MUTE
(int)
CURLOPT_USERPWD
(int)
CURLOPT_PROXYUSERPWD
(int)
CURLOPT_RANGE
(int)
CURLOPT_TIMEOUT
(int)
CURLOPT_TIMEOUT_MS
(int)
CURLOPT_TCP_NODELAY
(int)
CURLOPT_POSTFIELDS
(int)
CURLOPT_PROGRESSFUNCTION
(int)
CURLOPT_REFERER
(int)
CURLOPT_USERAGENT
(int)
CURLOPT_FTPPORT
(int)
CURLOPT_FTP_USE_EPSV
(int)
CURLOPT_LOW_SPEED_LIMIT
(int)
CURLOPT_LOW_SPEED_TIME
(int)
CURLOPT_RESUME_FROM
(int)
CURLOPT_SSLCERT
(int)
CURLOPT_SSLCERT_BLOB
(int)
CURLOPT_SSLCERTPASSWD
(int)
CURLOPT_SSLKEY_BLOB
(int)
CURLOPT_WRITEHEADER
(int)
CURLOPT_SSL_VERIFYHOST
(int)
CURLOPT_SSLVERSION
(int)
CURL_SSLVERSION_DEFAULT
(int)
CURL_SSLVERSION_TLSv1
(int)
CURL_SSLVERSION_SSLv2
(int)
CURL_SSLVERSION_SSLv3
(int)
CURL_SSLVERSION_TLSv1_0
(int)
CURL_SSLVERSION_TLSv1_1
(int)
CURL_SSLVERSION_TLSv1_2
(int)
CURLOPT_TIMECONDITION
(int)
CURLOPT_TIMEVALUE
(int)
CURLOPT_CUSTOMREQUEST
(int)
CURLOPT_STDERR
(int)
CURLOPT_TRANSFERTEXT
(int)
CURLOPT_RETURNTRANSFER
(int)
CURLOPT_QUOTE
(int)
CURLOPT_POSTQUOTE
(int)
CURLOPT_INTERFACE
(int)
CURLOPT_KRB4LEVEL
(int)
CURLOPT_HTTPPROXYTUNNEL
(int)
CURLOPT_FILETIME
(int)
CURLOPT_WRITEFUNCTION
(int)
CURLOPT_READFUNCTION
(int)
CURLOPT_PASSWDFUNCTION
(int)
CURLOPT_HEADERFUNCTION
(int)
CURLOPT_MAXREDIRS
(int)
CURLOPT_MAXCONNECTS
(int)
CURLOPT_FRESH_CONNECT
(int)
CURLOPT_FORBID_REUSE
(int)
CURLOPT_RANDOM_FILE
(int)
CURLOPT_EGDSOCKET
(int)
CURLOPT_CONNECTTIMEOUT
(int)
CURLOPT_CONNECTTIMEOUT_MS
(int)
CURLOPT_SSL_VERIFYPEER
(int)
CURLOPT_CAINFO
(int)
CURLOPT_CAPATH
(int)
CURLOPT_SSL_CIPHER_LIST
(int)
CURLOPT_BINARYTRANSFER
(int)
CURLOPT_NOSIGNAL
(int)
CURLOPT_PROXYTYPE
(int)
CURLOPT_BUFFERSIZE
(int)
CURLOPT_HTTPGET
(int)
CURLOPT_HTTP_VERSION
(int)
CURLOPT_SSLKEY
(int)
CURLOPT_SSLKEYTYPE
(int)
CURLOPT_SSLKEYPASSWD
(int)
CURLOPT_SSLENGINE
(int)
CURLOPT_SSLENGINE_DEFAULT
(int)
CURLOPT_SSLCERTTYPE
(int)
CURLOPT_CRLF
(int)
CURLOPT_ENCODING
(int)
CURLOPT_PROXYPORT
(int)
CURLOPT_UNRESTRICTED_AUTH
(int)
CURLOPT_FTP_USE_EPRT
(int)
CURLOPT_HTTP200ALIASES
(int)
CURLOPT_HTTPAUTH
(int)
CURLAUTH_BASIC
(int)
CURLAUTH_DIGEST
(int)
CURLAUTH_GSSNEGOTIATE
(int)
CURLAUTH_NEGOTIATE
(int)
CURLAUTH_NTLM
(int)
CURLAUTH_NTLM_WB
(int)
CURLAUTH_ANY
(int)
CURLAUTH_ANYSAFE
(int)
CURLOPT_PROXYAUTH
(int)
CURLOPT_MAX_RECV_SPEED_LARGE
(int)
CURLOPT_MAX_SEND_SPEED_LARGE
(int)
CURLOPT_HEADEROPT
(int)
CURLOPT_PROXYHEADER
(int)
CURLINFO_PRIVATE
(int)
CURLINFO_EFFECTIVE_URL
(int)
CURLINFO_HTTP_CODE
(int)
CURLINFO_RESPONSE_CODE
の古いエイリアスです。
CURLINFO_RESPONSE_CODE
(int)
CURLINFO_HEADER_OUT
(int)
CURLINFO_HEADER_SIZE
(int)
CURLINFO_REQUEST_SIZE
(int)
CURLINFO_TOTAL_TIME
(int)
CURLINFO_NAMELOOKUP_TIME
(int)
CURLINFO_CONNECT_TIME
(int)
CURLINFO_PRETRANSFER_TIME
(int)
CURLINFO_SIZE_UPLOAD
(int)
CURLINFO_SIZE_DOWNLOAD
(int)
CURLINFO_SPEED_DOWNLOAD
(int)
CURLINFO_SPEED_UPLOAD
(int)
CURLINFO_FILETIME
(int)
CURLINFO_SSL_VERIFYRESULT
(int)
CURLINFO_CONTENT_LENGTH_DOWNLOAD
(int)
CURLINFO_CONTENT_LENGTH_UPLOAD
(int)
CURLINFO_STARTTRANSFER_TIME
(int)
CURLINFO_CONTENT_TYPE
(int)
CURLINFO_REDIRECT_TIME
(int)
CURLINFO_REDIRECT_COUNT
(int)
CURLINFO_REDIRECT_URL
(string)
CURLINFO_PRIMARY_IP
(string)
CURLINFO_PRIMARY_PORT
(int)
CURLINFO_LOCAL_IP
(string)
CURLINFO_LOCAL_PORT
(int)
CURL_PUSH_OK
(int)
CURL_PUSH_DENY
(int)
CURL_REDIR_POST_301
(int)
CURL_REDIR_POST_302
(int)
CURL_REDIR_POST_303
(int)
CURL_REDIR_POST_ALL
(int)
CURL_TIMECOND_NONE
(int)
CURL_TIMECOND_IFMODSINCE
(int)
CURL_TIMECOND_IFUNMODSINCE
(int)
CURL_TIMECOND_LASTMOD
(int)
CURL_VERSION_ALTSVC
(int)
CURL_VERSION_ASYNCHDNS
(int)
CURL_VERSION_BROTLI
(int)
CURL_VERSION_CONV
(int)
CURL_VERSION_CURLDEBUG
(int)
CURL_VERSION_DEBUG
(int)
CURL_VERSION_GSSAPI
(int)
CURL_VERSION_GSSNEGOTIATE
(int)
CURL_VERSION_IDN
(int)
CURL_VERSION_MULTI_SSL
(int)
CURL_VERSION_NTLM
(int)
CURL_VERSION_NTLM_WB
(int)
CURL_VERSION_IPV6
(int)
CURL_VERSION_KERBEROS4
(int)
CURL_VERSION_KERBEROS5
(int)
CURL_VERSION_HTTP2
(int)
CURL_VERSION_LARGEFILE
(int)
CURL_VERSION_PSL
(int)
CURL_VERSION_SPNEGO
(int)
CURL_VERSION_SSPI
(int)
CURL_VERSION_SSL
(int)
CURL_VERSION_TLSAUTH_SRP
(int)
CURL_VERSION_UNIX_SOCKETS
(int)
CURL_VERSION_LIBZ
(int)
CURLVERSION_NOW
(int)
CURLE_OK
(int)
CURLE_UNSUPPORTED_PROTOCOL
(int)
CURLE_FAILED_INIT
(int)
CURLE_URL_MALFORMAT
(int)
CURLE_URL_MALFORMAT_USER
(int)
CURLE_COULDNT_RESOLVE_PROXY
(int)
CURLE_COULDNT_RESOLVE_HOST
(int)
CURLE_COULDNT_CONNECT
(int)
CURLE_FTP_WEIRD_SERVER_REPLY
(int)
CURLE_FTP_ACCESS_DENIED
(int)
CURLE_FTP_USER_PASSWORD_INCORRECT
(int)
CURLE_FTP_WEIRD_PASS_REPLY
(int)
CURLE_FTP_WEIRD_USER_REPLY
(int)
CURLE_FTP_WEIRD_PASV_REPLY
(int)
CURLE_FTP_WEIRD_227_FORMAT
(int)
CURLE_FTP_CANT_GET_HOST
(int)
CURLE_FTP_CANT_RECONNECT
(int)
CURLE_FTP_COULDNT_SET_BINARY
(int)
CURLE_PARTIAL_FILE
(int)
CURLE_FTP_COULDNT_RETR_FILE
(int)
CURLE_FTP_WRITE_ERROR
(int)
CURLE_FTP_QUOTE_ERROR
(int)
CURLE_HTTP_NOT_FOUND
(int)
CURLE_WRITE_ERROR
(int)
CURLE_MALFORMAT_USER
(int)
CURLE_FTP_COULDNT_STOR_FILE
(int)
CURLE_READ_ERROR
(int)
CURLE_OUT_OF_MEMORY
(int)
CURLE_OPERATION_TIMEOUTED
(int)
CURLE_FTP_COULDNT_SET_ASCII
(int)
CURLE_FTP_PORT_FAILED
(int)
CURLE_FTP_COULDNT_USE_REST
(int)
CURLE_FTP_COULDNT_GET_SIZE
(int)
CURLE_HTTP_RANGE_ERROR
(int)
CURLE_HTTP_POST_ERROR
(int)
CURLE_SSL_CONNECT_ERROR
(int)
CURLE_FTP_BAD_DOWNLOAD_RESUME
(int)
CURLE_FILE_COULDNT_READ_FILE
(int)
CURLE_LDAP_CANNOT_BIND
(int)
CURLE_LDAP_SEARCH_FAILED
(int)
CURLE_LIBRARY_NOT_FOUND
(int)
CURLE_FUNCTION_NOT_FOUND
(int)
CURLE_ABORTED_BY_CALLBACK
(int)
CURLE_BAD_FUNCTION_ARGUMENT
(int)
CURLE_BAD_CALLING_ORDER
(int)
CURLE_HTTP_PORT_FAILED
(int)
CURLE_BAD_PASSWORD_ENTERED
(int)
CURLE_TOO_MANY_REDIRECTS
(int)
CURLE_UNKNOWN_TELNET_OPTION
(int)
CURLE_TELNET_OPTION_SYNTAX
(int)
CURLE_OBSOLETE
(int)
CURLE_SSL_PEER_CERTIFICATE
(int)
CURLE_GOT_NOTHING
(int)
CURLE_SSL_ENGINE_NOTFOUND
(int)
CURLE_SSL_ENGINE_SETFAILED
(int)
CURLE_SEND_ERROR
(int)
CURLE_RECV_ERROR
(int)
CURLE_SSL_CERTPROBLEM
(int)
CURLE_SSL_CIPHER
(int)
CURLE_SSL_CACERT
(int)
CURLE_BAD_CONTENT_ENCODING
(int)
CURLE_LDAP_INVALID_URL
(int)
CURLE_FILESIZE_EXCEEDED
(int)
CURLE_FTP_SSL_FAILED
(int)
CURLE_SSH
(int)
CURLFTPAUTH_DEFAULT
(int)
CURLFTPAUTH_SSL
(int)
CURLFTPAUTH_TLS
(int)
CURLPROXY_HTTP
(int)
CURLPROXY_HTTP_1_0
(int)
CURLPROXY_SOCKS4
(int)
CURLPROXY_SOCKS5
(int)
CURL_NETRC_OPTIONAL
(int)
CURL_NETRC_IGNORED
(int)
CURL_NETRC_REQUIRED
(int)
CURL_HTTP_VERSION_NONE
(int)
CURL_HTTP_VERSION_1_0
(int)
CURL_HTTP_VERSION_1_1
(int)
CURL_HTTP_VERSION_2
(int)
CURL_HTTP_VERSION_2_0
(int)
CURL_HTTP_VERSION_2TLS
(int)
CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE
(int)
CURLM_CALL_MULTI_PERFORM
(int)
CURLM_OK
(int)
CURLM_BAD_HANDLE
(int)
CURLM_BAD_EASY_HANDLE
(int)
CURLM_OUT_OF_MEMORY
(int)
CURLM_INTERNAL_ERROR
(int)
CURLMSG_DONE
(int)
CURLOPT_KEYPASSWD
(int)
CURLOPT_SSH_AUTH_TYPES
(int)
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
(int)
CURLOPT_SSH_PRIVATE_KEYFILE
(int)
CURLOPT_SSH_PUBLIC_KEYFILE
(int)
CURLOPT_SSL_OPTIONS
(int)
CURLSSLOPT_ALLOW_BEAST
(int)
CURLSSLOPT_NO_REVOKE
(int)
CURLOPT_USERNAME
(int)
CURLOPT_SASL_IR
(int)
CURLOPT_DNS_INTERFACE
(int)
CURLOPT_DNS_LOCAL_IP4
(int)
CURLOPT_DNS_LOCAL_IP6
(int)
CURLOPT_XOAUTH2_BEARER
(int)
CURLOPT_LOGIN_OPTIONS
(int)
CURLOPT_EXPECT_100_TIMEOUT_MS
(int)
CURLOPT_SSL_ENABLE_ALPN
(int)
CURLOPT_SSL_ENABLE_NPN
(int)
CURLOPT_PINNEDPUBLICKEY
(int)
CURLOPT_UNIX_SOCKET_PATH
(int)
CURLOPT_SSL_VERIFYSTATUS
(int)
CURLOPT_PATH_AS_IS
(int)
CURLOPT_SSL_FALSESTART
(int)
CURLOPT_PIPEWAIT
(int)
CURLOPT_PROXY_SERVICE_NAME
(int)
CURLOPT_SERVICE_NAME
(int)
CURLOPT_DEFAULT_PROTOCOL
(int)
CURLOPT_STREAM_WEIGHT
(int)
CURLOPT_TFTP_NO_OPTIONS
(int)
CURLOPT_CONNECT_TO
(int)
CURLOPT_TCP_FASTOPEN
(int)
CURLOPT_TCP_KEEPALIVE
(int)
CURLOPT_TCP_KEEPIDLE
(int)
CURLOPT_TCP_KEEPINTVL
(int)
CURLMOPT_PIPELINING
(int)
CURLMOPT_MAXCONNECTS
(int)
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE
(int)
CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
(int)
CURLMOPT_MAX_HOST_CONNECTIONS
(int)
CURLMOPT_MAX_PIPELINE_LENGTH
(int)
CURLMOPT_MAX_TOTAL_CONNECTIONS
(int)
CURLMOPT_PUSHFUNCTION
(int)
CURLSSH_AUTH_AGENT
(int)
CURLSSH_AUTH_ANY
(int)
CURLSSH_AUTH_DEFAULT
(int)
CURLSSH_AUTH_HOST
(int)
CURLSSH_AUTH_KEYBOARD
(int)
CURLSSH_AUTH_NONE
(int)
CURLSSH_AUTH_PASSWORD
(int)
CURLSSH_AUTH_PUBLICKEY
(int)
CURLPAUSE_ALL
(int)
CURLPAUSE_CONT
(int)
CURLPAUSE_RECV
(int)
CURLPAUSE_RECV_CONT
(int)
CURLPAUSE_SEND
(int)
CURLPAUSE_SEND_CONT
(int)
CURLPIPE_NOTHING
(int)
CURLPIPE_HTTP1
(int)
CURLPIPE_MULTIPLEX
(int)
CURLPROXY_SOCKS4A
(int)
CURLPROXY_SOCKS5_HOSTNAME
(int)
CURLHEADER_SEPARATE
(int)
CURLHEADER_UNIFIED
(int)
CURLPROTO_SMB
(int)
CURLPROTO_SMBS
(int)
CURLOPT_REQUEST_TARGET
(int)
CURLAUTH_GSSAPI
(int)
CURLE_WEIRD_SERVER_REPLY
(int)
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
(int)
CURLINFO_CONTENT_LENGTH_UPLOAD_T
(int)
CURLINFO_HTTP_VERSION
(int)
CURLINFO_PROTOCOL
(int)
CURLINFO_PROXY_SSL_VERIFYRESULT
(int)
CURLINFO_SCHEME
(int)
CURLINFO_SIZE_DOWNLOAD_T
(int)
CURLINFO_SIZE_UPLOAD_T
(int)
CURLINFO_SPEED_DOWNLOAD_T
(int)
CURLINFO_SPEED_UPLOAD_T
(int)
CURL_MAX_READ_SIZE
(int)
CURLOPT_ABSTRACT_UNIX_SOCKET
(int)
CURLOPT_KEEP_SENDING_ON_ERROR
(int)
CURLOPT_PRE_PROXY
(int)
CURLOPT_PROXY_CAINFO
(int)
CURLOPT_PROXY_CAPATH
(int)
CURLOPT_PROXY_CRLFILE
(int)
CURLOPT_PROXY_KEYPASSWD
(int)
CURLOPT_PROXY_PINNEDPUBLICKEY
(int)
CURLOPT_PROXY_SSLCERT
(int)
CURLOPT_PROXY_SSLCERTTYPE
(int)
CURLOPT_PROXY_SSL_CIPHER_LIST
(int)
CURLOPT_PROXY_SSLKEY
(int)
CURLOPT_PROXY_SSLKEYTYPE
(int)
CURLOPT_PROXY_SSL_OPTIONS
(int)
CURLOPT_PROXY_SSL_VERIFYHOST
(int)
CURLOPT_PROXY_SSL_VERIFYPEER
(int)
CURLOPT_PROXY_SSLVERSION
(int)
CURLOPT_PROXY_TLSAUTH_PASSWORD
(int)
CURLOPT_PROXY_TLSAUTH_TYPE
(int)
CURLOPT_PROXY_TLSAUTH_USERNAME
(int)
CURLOPT_SOCKS5_AUTH
(int)
CURLOPT_SUPPRESS_CONNECT_HEADERS
(int)
CURLPROXY_HTTPS
(int)
CURL_SSLVERSION_MAX_DEFAULT
(int)
CURL_SSLVERSION_MAX_NONE
(int)
CURL_SSLVERSION_MAX_TLSv1_0
(int)
CURL_SSLVERSION_MAX_TLSv1_1
(int)
CURL_SSLVERSION_MAX_TLSv1_2
(int)
CURL_SSLVERSION_MAX_TLSv1_3
(int)
CURL_SSLVERSION_TLSv1_3
(int)
CURL_VERSION_HTTPS_PROXY
(int)
CURLAUTH_BEARER
(int)
CURLINFO_APPCONNECT_TIME_T
(int)
CURLINFO_CONNECT_TIME_T
(int)
CURLINFO_FILETIME_T
(int)
CURLINFO_NAMELOOKUP_TIME_T
(int)
CURLINFO_PRETRANSFER_TIME_T
(int)
CURLINFO_REDIRECT_TIME_T
(int)
CURLINFO_STARTTRANSFER_TIME_T
(int)
CURLINFO_TOTAL_TIME_T
(int)
CURL_LOCK_DATA_CONNECT
(int)
CURL_LOCK_DATA_PSL
(int)
CURLOPT_DISALLOW_USERNAME_IN_URL
(int)
CURLOPT_DNS_SHUFFLE_ADDRESSES
(int)
CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
(int)
CURLOPT_HAPROXYPROTOCOL
(int)
CURLOPT_PROXY_TLS13_CIPHERS
(int)
CURLOPT_SSH_COMPRESSION
(int)
CURLOPT_TIMEVALUE_LARGE
(int)
CURLOPT_TLS13_CIPHERS
(int)
CURLSSH_AUTH_GSSAPI
(int)
CURLOPT_HTTP09_ALLOWED
(int)