Next: , Previous: , Up: Options   [Contents][Index]


2.2.1 Option Table

The table describes the options and the type of info expected for each option.

Option SymbolC Library NameInfo Type
BEHAVIOR OPTIONS
verboseCURLOPT_VERBOSEboolean
headerCURLOPT_HEADERboolean
nosignalCURLOPT_NOSIGNALboolean
wildcardmatchCURLOPT_WILDCARDMATCHboolean
CALLBACK OPTIONS
readdataCURLOPT_READDATAinput port
NETWORK OPTIONS
urlCURLOPT_URLstring
path-as-isCURLOPT_PATH_AS_ISboolean
protocolsCURLOPT_PROTOCOLSinteger3
redir-protocolsCURLOPT_REDIR_PROTOCOLSinteger4
default-protocolCURLOPT_DEFAULT_PROTOCOLstring
proxyCURLOPT_PROXYstring
pre-proxyCURLOPT_PRE_PROXYstring
proxyportCURLOPT_PROXYPORTinteger
proxytypeCURLOPT_PROXYTYPEinteger5
noproxyCURLOPT_NOPROXYstring
httpproxytunnelCURLOPT_HTTPPROXYTUNNELboolean
connect-toCURLOPT_CONNECT_TOslist
socks5-authCURLOPT_SOCKS5_AUTHinteger
socks5-gssapi-serviceCURLOPT_SOCKS5_GSSAPI_SERVICEstring
socks5-gssapi-necCURLOPT_SOCKS5_GSSAPI_NECboolean
proxy-service-nameCURLOPT_PROXY_SERVICE_NAMEstring
haproxyprotocolCURLOPT_HAPROXYPROTOCOLboolean
service-nameCURLOPT_SERVICE_NAMEstring
interfaceCURLOPT_INTERFACEstring
localportCURLOPT_LOCALPORTinteger
localportrangeCURLOPT_LOCALPORTRANGEinteger
dns-cache-timeoutCURLOPT_DNS_CACHE_TIMEOUTinteger
doh-urlCURLOPT_DOH_URLstring
buffersizeCURLOPT_BUFFERSIZEinteger
portCURLOPT_PORTinteger
tcp-fastopenCURLOPT_TCP_FASTOPENboolean
tcp-nodelayCURLOPT_TCP_NODELAYboolean
address-scopeCURLOPT_ADDRESS_SCOPEinteger
tcp-keepaliveCURLOPT_TCP_KEEPALIVEboolean
tcp-keepidleCURLOPT_TCP_KEEPIDLEinteger
tcp-keepintvlCURLOPT_TCP_KEEPINTVLinteger
unix-socket-pathCURLOPT_UNIX_SOCKET_PATHstring
abstract-unix-socketCURLOPT_ABSTRACT_UNIX_SOCKETstring
NAMES AND PASSWORD OPTIONS
netrcCURLOPT_NETRCinteger6
netrc-fileCURLOPT_NETRC_FILEstring
userpwdCURLOPT_USERPWDstring
proxyuserpwdCURLOPT_PROXYUSERPWDstring
usernameCURLOPT_USERNAMEstring
passwordCURLOPT_PASSWORDstring
login-optionsCURLOPT_LOGIN_OPTIONSstring
proxyusernameCURLOPT_PROXYUSERNAMEstring
proxypasswordCURLOPT_PROXYPASSWORDstring
httpauthCURLOPT_HTTPAUTHinteger7
tlsauth-usernameCURLOPT_TLSAUTH_USERNAMEstring
tlsauth-typeCURLOPT_TLSAUTH_TYPEstring
proxy-tlsauth-usernameCURLOPT_PROXY_TLSAUTH_USERNAMEstring
tlsauth-passwordCURLOPT_TLSAUTH_PASSWORDstring
proxy-tlsauth-passwordCURLOPT_PROXY_TLSAUTH_PASSWORDstring
tlsauth-typeCURLOPT_TLSAUTH_TYPEstring
proxy-tlsauth-typeCURLOPT_PROXY_TLSAUTH_TYPEstring
proxyauthCURLOPT_PROXYAUTHinteger8
sasl-irCURLOPT_SASL_IRboolean
xoauth2-bearerCURLOPT_XOAUTH2_BEARERstring
disallow-username-in-urlCURLOPT_DISALLOW_USERNAME_IN_URLboolean
HTTP OPTIONS
autorefererCURLOPT_AUTOREFERERboolean
accept-encodingCURLOPT_ACCEPT_ENCODINGstring
transfer-encodingCURLOPT_TRANSFER_ENCODINGstring
followlocationCURLOPT_FOLLOWLOCATIONboolean
unrestricted-authCURLOPT_UNRESTRICTED_AUTHboolean
maxredirsCURLOPT_MAXREDIRSinteger
postredirCURLOPT_POSTREDIRinteger9
putCURLOPT_PUTboolean
postCURLOPT_POSTboolean
postfields10CURLOPT_POSTFIELDSbytevector
httppostCURLOPT_HTTPPOSThttppost
refererCURLOPT_REFERERstring
useragentCURLOPT_USERAGENTstring
httpheaderCURLOPT_HTTPHEADERslist11
headeroptCURLOPT_HEADEROPTinteger
proxyheaderCURLOPT_PROXYHEADERslist
http200aliasesCURLOPT_HTTP200ALIASESslist
cookieCURLOPT_COOKIEstring
cookiefileCURLOPT_COOKIEFILEstring
cookiejarCURLOPT_COOKIEJARstring
cookiesessionCURLOPT_COOKIESESSIONboolean
cookielistCURLOPT_COOKIELISTstring
httpgetCURLOPT_HTTPGETboolean
request-targetCURLOPT_REQUEST_TARGETstring
http-versionCURLOPT_HTTP_VERSIONinteger12
http09-allowedCURLOPT_HTTP09_ALLOWEDboolean
ignore-content-lengthCURLOPT_IGNORE_CONTENT_LENGTHboolean
http-content-decodingCURLOPT_HTTP_CONTENT_DECODINGboolean
http-transfer-decodingCURLOPT_HTTP_TRANSFER_DECODINGboolean
expect-100-timeout-msCURLOPT_EXPECT_100_TIMEOUT_MSinteger
pipewaitCURLOPT_PIPEWAITboolean
stream-waitCURLOPT_STREAM_WEIGHTinteger
SMTP OPTIONS
mail-fromCURLOPT_MAIL_FROMstring
mail-rcptCURLOPT_MAIL_RCPTslist
mail-authCURLOPT_MAIL_AUTHstring
TFTP OPTIONS
tftp-blksizeCURLOPT_TFTP_BLKSIZEinteger
tftp-no-optionsCURLOPT_TFTP_NO_OPTIONSboolean
FTP OPTIONS
ftpportCURLOPT_FTPPORTstring
quoteCURLOPT_QUOTEslist
postquoteCURLOPT_POSTQUOTEslist
prequoteCURLOPT_PREQUOTEslist
appendCURLOPT_APPENDboolean
ftp-use-eprtCURLOPT_FTP_USE_EPRTboolean
ftp-use-epsvCURLOPT_FTP_USE_EPSVboolean
ftp-use-pretCURLOPT_FTP_USE_PRETboolean
ftp-create-missing-dirsCURLOPT_FTP_CREATE_MISSING_DIRSboolean
ftp-response-timeoutCURLOPT_FTP_RESPONSE_TIMEOUTinteger
ftp-alternative-to-userCURLOPT_FTP_ALTERNATIVE_TO_USERstring
ftp-skip-pasv-ipCURLOPT_FTP_SKIP_PASV_IPboolean
ftpsslauthCURLOPT_FTPSSLAUTHinteger13
ftp-ssl-cccCURLOPT_FTP_SSL_CCCinteger14
ftp-accountCURLOPT_FTP_ACCOUNTstring
ftp-filemethodCURLOPT_FTP_FILEMETHODinteger15
RTSP OPTIONS
rtsp-requestCURLOPT_RTSP_REQUESTinteger16
rtsp-session-idCURLOPT_RTSP_SESSION_IDstring
rtsp-stream-uriCURLOPT_RTSP_STREAM_URIstring
rtsp-transportCURLOPT_RTSP_TRANSPORTstring
rtsp-client-cseqCURLOPT_RTSP_CLIENT_CSEQinteger
PROTOCOL OPTIONS
transfertextCURLOPT_TRANSFERTEXTboolean
proxy-transfer-modeCURLOPT_PROXY_TRANSFER_MODEboolean
crlfCURLOPT_CRLFboolean
rangeCURLOPT_RANGEstring
resume-fromCURLOPT_RESUME_FROMinteger
resume-from-largeCURLOPT_RESUME_FROM_LARGEbiginteger
customrequestCURLOPT_CUSTOMREQUESTstring
filetimeCURLOPT_FILETIMEboolean
nobodyCURLOPT_NOBODYboolean
infilesizeCURLOPT_INFILESIZEinteger
infilesize-largeCURLOPT_INFILESIZE_LARGEbiginteger
uploadCURLOPT_UPLOADboolean
upload-buffersizeCURLOPT_UPLOAD_BUFFERSIZEinteger
maxfilesizeCURLOPT_MAXFILESIZEinteger
maxfilesize-largeCURLOPT_MAXFILESIZE_LARGEbiginteger
timeconditionCURLOPT_TIMECONDITIONinteger
timevalueCURLOPT_TIMEVALUEinteger
timevalue-largeCURLOPT_TIMEVALUE_LARGEbiginteger
CONNECTION OPTIONS
timeoutCURLOPT_TIMEOUTinteger
timeout-msCURLOPT_TIMEOUT_MSinteger
low-speed-limitCURLOPT_LOW_SPEED_LIMITinteger
low-speed-timeCURLOPT_LOW_SPEED_TIMEinteger
max-send-speed-largeCURLOPT_MAX_SEND_SPEED_LARGEbiginteger
max-recv-speed-largeCURLOPT_MAX_RECV_SPEED_LARGEbiginteger
maxconnectsCURLOPT_MAXCONNECTSinteger
fresh-connectCURLOPT_FRESH_CONNECTboolean
forbid-reuseCURLOPT_FORBID_REUSEboolean
connecttimeoutCURLOPT_CONNECTTIMEOUTinteger
connecttimeout-msCURLOPT_CONNECTTIMEOUT_MSinteger
ipresolveCURLOPT_IPRESOLVEinteger17
connect-onlyCURLOPT_CONNECT_ONLYboolean
use-sslCURLOPT_USE_SSLinteger18
resolveCURLOPT_RESOLVEslist
dns-interfaceCURLOPT_DNS_INTERFACEstring
dns-local-ip4CURLOPT_DNS_LOCAL_IP4string
dns-local-ip6CURLOPT_DNS_LOCAL_IP6string
dns-serversCURLOPT_DNS_SERVERSstring
dns-shuffle-addressesCURLOPT_DNS_SHUFFLE_ADDRESSESboolean
accepttimeout-msCURLOPT_ACCEPTTIMEOUT_MSinteger
happy-eyeballs-timeout-msCURLOPT_HAPPY_EYEBALLS_TIMEOUT_MSinteger
upkeep-interval-msCURLOPT_UPKEEP_INTERVAL_MSinteger)
SSL AND SECURITY OPTIONS
sslcertCURLOPT_SSLCERTstring
proxy-sslcertCURLOPT_PROXY_SSLCERTstring
sslcerttypeCURLOPT_SSLCERTTYPEstring
proxy-sslcerttypeCURLOPT_PROXY_SSLCERTTYPEstring
sslkeyCURLOPT_SSLKEYstring
proxy-sslkeyCURLOPT_PROXY_SSLKEYstring
sslkeytypeCURLOPT_SSLKEYTYPEstring
proxy-sslkeytypeCURLOPT_PROXY_SSLKEYTYPEstring
keypasswdCURLOPT_KEYPASSWDstring
proxy-keypasswdCURLOPT_PROXY_KEYPASSWDstring
ssl-enable-alpnCURLOPT_SSL_ENABLE_ALPNboolean
ssl-enable-npnCURLOPT_SSL_ENABLE_ALPNboolean
sslengineCURLOPT_SSLENGINEstring
sslengine-defaultCURLOPT_SSLENGINE_DEFAULTboolean
ssl-falsestartCURLOPT_SSL_FALSESTARTboolean
sslversionCURLOPT_SSLVERSIONinteger19
proxy-sslversionCURLOPT_PROXY_SSLVERSIONinteger20
ssl-verifyhostCURLOPT_SSL_VERIFYHOSTboolean
proxy-ssl-verifyhostCURLOPT_SSL_VERIFYHOSTboolean
ssl-verifypeerCURLOPT_SSL_VERIFYPEERboolean
proxy-ssl-verifypeerCURLOPT_PROXY_SSL_VERIFYPEERboolean
cainfoCURLOPT_CAINFOstring
proxy-cainfoCURLOPT_PROXY_CAINFOstring
issuercertCURLOPT_ISSUERCERTstring
capathCURLOPT_CAPATHstring
proxy-capathCURLOPT_PROXY_CAPATHstring
crlfileCURLOPT_CRLFILEstring
ssl-verifyhostCURLOPT_SSL_VERIFYHOSTinteger
certinfoCURLOPT_CERTINFOboolean
random-fileCURLOPT_RANDOM_FILEstring
egdsocketCURLOPT_EGDSOCKETstring
ssl-cipher-listCURLOPT_SSL_CIPHER_LISTstring
ssl-sessionid-cacheCURLOPT_SSL_SESSIONID_CACHEboolean
krblevelCURLOPT_KRBLEVELstring
gssapi-delegationCURLOPT_GSSAPI_DELEGATIONinteger21
SSH OPTIONS
ssh-auth-typesCURLOPT_SSH_AUTH_TYPESinteger22
ssh-host-public-key-md5CURLOPT_SSH_HOST_PUBLIC_KEY_MD5string
ssh-public-keyfileCURLOPT_SSH_PUBLIC_KEYFILEstring
ssh-private-keyfileCURLOPT_SSH_PRIVATE_KEYFILEstring
ssh-known-hostsCURLOPT_SSH_KNOWN_HOSTSstring
new-file-permsCURLOPT_NEW_FILE_PERMSinteger
new-directory-permsCURLOPT_NEW_DIRECTORY_PERMSinteger
telnetoptionsCURLOPT_TELNETOPTIONSslist

Footnotes

(3)

See Integer Constants for protocols.

(4)

See Integer Constants for protocols.

(5)

See Integer Constants for proxytype.

(6)

See Integer Constants for netrc.

(7)

See Integer Constants for httpauth.

(8)

See Integer Constants for httpauth.

(9)

See Integer Constants for postredir.

(10)

See Postfields.

(11)

Pass an empty list to clear out the HTTP headers.

(12)

See Integer Constants for http-version.

(13)

See Integer Constants for ftpsslauth.

(14)

See Integer Constants for ftp-ssl-ccc.

(15)

See Integer Constants for ftp-filemethod.

(16)

See Integer Constants for rtsp-request.

(17)

See Integer Constants for ipresolve.

(18)

See Integer Constants for use-ssl.

(19)

See Integer Constants for sslversion.

(20)

See Integer Constants for sslversion.

(21)

See Integer Constants for gssapi-delegation.

(22)

See Integer Constants for ssh-auth-types.


Next: , Previous: , Up: Options   [Contents][Index]