Was this helpful?
UrlConnection "option" Settings
The constants are used as the “option” argument of the SetOption() method of the UrlConnection class. These constants are described at https://curl.se/libcurl/c/curl_easy_setopt.html.
Constant Value
Numeric
Equivalent
Type of "value" parameter of SetOption() method
CURLOPT_ABSTRACT_UNIX_SOCKET
10264
(n)varchar
CURLOPT_ACCEPTTIMEOUT_MS
212
integer
CURLOPT_ACCEPT_ENCODING
10102
(n)varchar
CURLOPT_ADDRESS_SCOPE
171
integer
CURLOPT_ALTSVC
10287
(n)varchar
CURLOPT_ALTSVC_CTRL
286
integer
CURLOPT_APPEND
50
integer
CURLOPT_AUTOREFERER
58
integer
CURLOPT_BUFFERSIZE
98
integer
CURLOPT_CAINFO
10065
(n)varchar
CURLOPT_CAPATH
10097
(n)varchar
CURLOPT_CERTINFO
172
integer
CURLOPT_CONNECTTIMEOUT
78
integer
CURLOPT_CONNECTTIMEOUT_MS
156
integer
CURLOPT_CONNECT_ONLY
141
integer
CURLOPT_CONNECT_TO
10243
Array of StringObject
CURLOPT_COOKIE
10022
(n)varchar
CURLOPT_COOKIEFILE
10031
(n)varchar
CURLOPT_COOKIEJAR
10082
(n)varchar
CURLOPT_COOKIELIST
10135
(n)varchar
CURLOPT_COOKIESESSION
96
integer
CURLOPT_COPYPOSTFIELDS
10165
(n)varchar
CURLOPT_CRLF
27
integer
CURLOPT_CRLFILE
10169
(n)varchar
CURLOPT_CUSTOMREQUEST
10036
(n)varchar
CURLOPT_DEFAULT_PROTOCOL
10238
(n)varchar
CURLOPT_DIRLISTONLY
48
integer
CURLOPT_DISALLOW_USERNAME_IN_URL
278
integer
CURLOPT_DNS_CACHE_TIMEOUT
92
integer
CURLOPT_DNS_INTERFACE
10221
(n)varchar
CURLOPT_DNS_LOCAL_IP4
10222
(n)varchar
CURLOPT_DNS_LOCAL_IP6
10223
(n)varchar
CURLOPT_DNS_SERVERS
10211
(n)varchar
CURLOPT_DNS_SHUFFLE_ADDRESSES
275
integer
CURLOPT_DNS_USE_GLOBAL_CACHE
91
integer
CURLOPT_DOH_URL
10279
(n)varchar
CURLOPT_EGDSOCKET
10077
(n)varchar
CURLOPT_EXPECT_100_TIMEOUT_MS
227
integer
CURLOPT_FAILONERROR
45
integer
CURLOPT_FILETIME
69
integer
CURLOPT_FOLLOWLOCATION
52
integer
CURLOPT_FORBID_REUSE
75
integer
CURLOPT_FRESH_CONNECT
74
integer
CURLOPT_FTPPORT
10017
(n)varchar
CURLOPT_FTPSSLAUTH
129
integer
CURLOPT_FTP_ACCOUNT
10134
(n)varchar
CURLOPT_FTP_ALTERNATIVE_TO_USER
10147
(n)varchar
CURLOPT_FTP_CREATE_MISSING_DIRS
110
integer
CURLOPT_FTP_FILEMETHOD
138
integer
CURLOPT_FTP_RESPONSE_TIMEOUT
112
integer
CURLOPT_FTP_SKIP_PASV_IP
137
integer
CURLOPT_FTP_SSL_CCC
154
integer
CURLOPT_FTP_USE_EPRT
106
integer
CURLOPT_FTP_USE_EPSV
85
integer
CURLOPT_FTP_USE_PRET
188
integer
CURLOPT_GSSAPI_DELEGATION
210
integer
CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
271
integer
CURLOPT_HAPROXYPROTOCOL
274
integer
CURLOPT_HEADER
42
integer
CURLOPT_HEADEROPT
229
integer
CURLOPT_HTTP09_ALLOWED
285
integer
CURLOPT_HTTP200ALIASES
10104
Array of StringObject
CURLOPT_HTTPAUTH
107
integer
CURLOPT_HTTPGET
80
integer
CURLOPT_HTTPHEADER
10023
Array of StringObject
CURLOPT_HTTPPROXYTUNNEL
61
integer
CURLOPT_HTTP_CONTENT_DECODING
158
integer
CURLOPT_HTTP_TRANSFER_DECODING
157
integer
CURLOPT_HTTP_VERSION
84
integer
CURLOPT_IGNORE_CONTENT_LENGTH
136
integer
CURLOPT_INFILESIZE
14
integer
CURLOPT_INFILESIZE_LARGE
30115
integer8
CURLOPT_INTERFACE
10062
(n)varchar
CURLOPT_IPRESOLVE
113
integer
CURLOPT_ISSUERCERT
10170
(n)varchar
CURLOPT_KEEP_SENDING_ON_ERROR
245
integer
CURLOPT_KEYPASSWD
10026
(n)varchar
CURLOPT_KRBLEVEL
10063
(n)varchar
CURLOPT_LOCALPORT
139
integer
CURLOPT_LOCALPORTRANGE
140
integer
CURLOPT_LOGIN_OPTIONS
10224
(n)varchar
CURLOPT_LOW_SPEED_LIMIT
19
integer
CURLOPT_LOW_SPEED_TIME
20
integer
CURLOPT_MAIL_AUTH
10217
(n)varchar
CURLOPT_MAIL_FROM
10186
(n)varchar
CURLOPT_MAIL_RCPT
10187
Array of StringObject
CURLOPT_MAIL_RCPT_ALLLOWFAILS
290
integer
CURLOPT_MAXAGE_CONN
288
integer
CURLOPT_MAXCONNECTS
71
integer
CURLOPT_MAXFILESIZE
114
integer
CURLOPT_MAXFILESIZE_LARGE
30117
integer8
CURLOPT_MAXREDIRS
68
integer
CURLOPT_MAX_RECV_SPEED_LARGE
30146
integer8
CURLOPT_MAX_SEND_SPEED_LARGE
30145
integer8
CURLOPT_NETRC
51
integer
CURLOPT_NETRC_FILE
10118
(n)varchar
CURLOPT_NEW_DIRECTORY_PERMS
160
integer
CURLOPT_NEW_FILE_PERMS
159
integer
CURLOPT_NOBODY
44
integer
CURLOPT_NOPROGRESS
43
integer
CURLOPT_NOPROXY
10177
(n)varchar
CURLOPT_NOSIGNAL
99
integer
CURLOPT_PASSWORD
10174
(n)varchar
CURLOPT_PATH_AS_IS
234
integer
CURLOPT_PINNEDPUBLICKEY
10230
(n)varchar
CURLOPT_PIPEWAIT
237
integer
CURLOPT_PORT
3
integer
CURLOPT_POST
47
integer
CURLOPT_POSTFIELDS
10015
(n)varchar
CURLOPT_POSTFIELDSIZE
60
integer
CURLOPT_POSTFIELDSIZE_LARGE
30120
integer8
CURLOPT_POSTQUOTE
10039
Array of StringObject
CURLOPT_POSTREDIR
161
integer
CURLOPT_PREQUOTE
10093
Array of StringObject
CURLOPT_PRE_PROXY
10262
(n)varchar
CURLOPT_PROTOCOLS
181
integer
CURLOPT_PROXY
10004
(n)varchar
CURLOPT_PROXYAUTH
111
integer
CURLOPT_PROXYHEADER
10228
Array of StringObject
CURLOPT_PROXYPASSWORD
10176
(n)varchar
CURLOPT_PROXYPORT
59
integer
CURLOPT_PROXYTYPE
101
integer
CURLOPT_PROXYUSERNAME
10175
(n)varchar
CURLOPT_PROXYUSERPWD
10006
(n)varchar
CURLOPT_PROXY_CAINFO
10246
(n)varchar
CURLOPT_PROXY_CAPATH
10247
(n)varchar
CURLOPT_PROXY_CRLFILE
10260
(n)varchar
CURLOPT_PROXY_ISSUERCERT
10296
(n)varchar
CURLOPT_PROXY_KEYPASSWD
10258
(n)varchar
CURLOPT_PROXY_PINNEDPUBLICKEY
10263
(n)varchar
CURLOPT_PROXY_SERVICE_NAME
10235
(n)varchar
CURLOPT_PROXY_SSLCERT
10254
(n)varchar
CURLOPT_PROXY_SSLCERTTYPE
10255
(n)varchar
CURLOPT_PROXY_SSLKEY
10256
(n)varchar
CURLOPT_PROXY_SSLKEYTYPE
10257
(n)varchar
CURLOPT_PROXY_SSLVERSION
250
integer
CURLOPT_PROXY_SSL_CIPHER_LIST
10259
(n)varchar
CURLOPT_PROXY_SSL_OPTIONS
261
integer
CURLOPT_PROXY_SSL_VERIFYHOST
249
integer
CURLOPT_PROXY_SSL_VERIFYPEER
248
integer
CURLOPT_PROXY_TLS13_CIPHERS
10277
(n)varchar
CURLOPT_PROXY_TLSAUTH_PASSWORD
10252
(n)varchar
CURLOPT_PROXY_TLSAUTH_TYPE
10253
(n)varchar
CURLOPT_PROXY_TLSAUTH_USERNAME
10251
(n)varchar
CURLOPT_PROXY_TRANSFER_MODE
166
integer
CURLOPT_PUT
54
integer
CURLOPT_QUOTE
10028
Array of StringObject
CURLOPT_RANDOM_FILE
10076
(n)varchar
CURLOPT_RANGE
10007
(n)varchar
CURLOPT_REDIR_PROTOCOLS
182
integer
CURLOPT_REFERER
10016
(n)varchar
CURLOPT_REQUEST_TARGET
10266
(n)varchar
CURLOPT_RESOLVE
10203
Array of StringObject
CURLOPT_RESUME_FROM
21
integer
CURLOPT_RESUME_FROM_LARGE
30116
integer8
CURLOPT_RTSP_CLIENT_CSEQ
193
integer
CURLOPT_RTSP_REQUEST
189
integer
CURLOPT_RTSP_SERVER_CSEQ
194
integer
CURLOPT_RTSP_SESSION_ID
10190
(n)varchar
CURLOPT_RTSP_STREAM_URI
10191
(n)varchar
CURLOPT_RTSP_TRANSPORT
10192
(n)varchar
CURLOPT_SASL_AUTHZID
10289
(n)varchar
CURLOPT_SASL_IR
218
integer
CURLOPT_SERVICE_NAME
10236
(n)varchar
CURLOPT_SOCKS5_AUTH
267
integer
CURLOPT_SOCKS5_GSSAPI_NEC
180
integer
CURLOPT_SOCKS5_GSSAPI_SERVICE
10179
(n)varchar
CURLOPT_SSH_AUTH_TYPES
151
integer
CURLOPT_SSH_COMPRESSION
268
integer
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
10162
(n)varchar
CURLOPT_SSH_KNOWNHOSTS
10183
(n)varchar
CURLOPT_SSH_PRIVATE_KEYFILE
10153
(n)varchar
CURLOPT_SSH_PUBLIC_KEYFILE
10152
(n)varchar
CURLOPT_SSLCERT
10025
(n)varchar
CURLOPT_SSLCERTTYPE
10086
(n)varchar
CURLOPT_SSLENGINE
10089
(n)varchar
CURLOPT_SSLENGINE_DEFAULT
90
integer
CURLOPT_SSLKEY
10087
(n)varchar
CURLOPT_SSLKEYTYPE
10088
(n)varchar
CURLOPT_SSLVERSION
32
integer
CURLOPT_SSL_CIPHER_LIST
10083
(n)varchar
CURLOPT_SSL_EC_CURVES
10298
(n)varchar
CURLOPT_SSL_ENABLE_ALPN
226
integer
CURLOPT_SSL_ENABLE_NPN
225
integer
CURLOPT_SSL_FALSESTART
233
integer
CURLOPT_SSL_OPTIONS
216
integer
CURLOPT_SSL_SESSIONID_CACHE
150
integer
CURLOPT_SSL_VERIFYHOST
81
integer
CURLOPT_SSL_VERIFYPEER
64
integer
CURLOPT_SSL_VERIFYSTATUS
232
integer
CURLOPT_STREAM_WEIGHT
239
integer
CURLOPT_SUPPRESS_CONNECT_HEADERS
265
integer
CURLOPT_TCP_FASTOPEN
244
integer
CURLOPT_TCP_KEEPALIVE
213
integer
CURLOPT_TCP_KEEPIDLE
214
integer
CURLOPT_TCP_KEEPINTVL
215
integer
CURLOPT_TCP_NODELAY
121
integer
CURLOPT_TELNETOPTIONS
10070
Array of StringObject
CURLOPT_TFTP_BLKSIZE
178
integer
CURLOPT_TFTP_NO_OPTIONS
242
integer
CURLOPT_TIMECONDITION
33
integer
CURLOPT_TIMEOUT
13
integer
CURLOPT_TIMEOUT_MS
155
integer
CURLOPT_TIMEVALUE
34
integer
CURLOPT_TIMEVALUE_LARGE
30270
integer8
CURLOPT_TLS13_CIPHERS
10276
(n)varchar
CURLOPT_TLSAUTH_PASSWORD
10205
(n)varchar
CURLOPT_TLSAUTH_TYPE
10206
(n)varchar
CURLOPT_TLSAUTH_USERNAME
10204
(n)varchar
CURLOPT_TRANSFERTEXT
53
integer
CURLOPT_TRANSFER_ENCODING
207
integer
CURLOPT_UNIX_SOCKET_PATH
10231
(n)varchar
CURLOPT_UNRESTRICTED_AUTH
105
integer
CURLOPT_UPKEEP_INTERVAL_MS
281
integer
CURLOPT_UPLOAD
46
integer
CURLOPT_UPLOAD_BUFFERSIZE
280
integer
CURLOPT_URL
10002
(n)varchar
CURLOPT_USERAGENT
10018
(n)varchar
CURLOPT_USERNAME
10173
(n)varchar
CURLOPT_USERPWD
10005
(n)varchar
CURLOPT_USE_SSL
119
integer
CURLOPT_VERBOSE
41
integer
CURLOPT_WILDCARDMATCH
197
integer
CURLOPT_XOAUTH2_BEARER
10220
(n)varchar
 
Last modified date: 12/20/2023