Class options
|
Option
|
Default
|
Description
|
$.library[/path/to/libcurl.so]
|
unix - libcurl.so
win32 - libcurl.dll |
Full path to dynamical libcurl library.
|
$.charset[charset]
|
correspondes $request:charset
|
Charset used in documents on remote server. This charset is used to transcode request string. This charset is used to transcode response body if HTTP response does not contain charset.
|
$.response-charset[charset]
|
taken from HTTP response header
|
Force specify charset for response body.
|
$.name[file name]
|
NONAME.DAT
|
The name of the created file object.
|
$.mode[text|binary]
|
text
|
The mode of the created file object.
|
$.content-type[CONTENT-TYPE]
|
taken from HTTP response header
|
The content-type of the created file object.
|
Option
|
Type
|
libcurl analog
|
Description
|
accept_encoding
|
CURLOPT_ACCEPT_ENCODING
|
Compresion for the request: gzip or deflate. (Old option name-encoding-is also supported)
| |
autoreferer
|
CURLOPT_AUTOREFERER
|
Set the Referer header automatically.
| |
cainfo
|
CURLOPT_CAINFO
|
See libcurl documentation.
| |
capath
|
CURLOPT_CAPATH
|
See libcurl documentation.
| |
connecttimeout
|
CURLOPT_CONNECTTIMEOUT
|
The maximum time in seconds that you allow the connection to the server to take.
| |
connecttimeout_ms
|
CURLOPT_CONNECTTIMEOUT_MS
|
The maximum time in milliseconds that you allow the connection to the server to take.
| |
cookie
|
CURLOPT_COOKIE
|
String with cookies (name1=content1; name2=content2;...).
| |
cookielist
|
CURLOPT_COOKIELIST
|
String with cookies (read about differences from cookie option in libcurl documentation)
| |
cookiesession
|
CURLOPT_COOKIESESSION
|
See libcurl documentation.
| |
copypostfields
|
CURLOPT_COPYPOSTFIELDS
|
The body of POST-request.
| |
crlfile
|
CURLOPT_CRLFILE
|
See libcurl documentation.
| |
customrequest
|
CURLOPT_CUSTOMREQUEST
|
Custom HTTP method.
| |
failonerror
|
CURLOPT_FAILONERROR
|
Fail if HTTP code returned is equal or larger then 400.
| |
followlocation
|
CURLOPT_FOLLOWLOCATION
|
Follow any Location header.
| |
forbid_reuse
|
CURLOPT_FORBID_REUSE
|
See libcurl documentation.
| |
fresh_connect
|
CURLOPT_FRESH_CONNECT
|
Next transfer will use a new connection by force.
| |
http_version
|
CURLOPT_HTTP_VERSION
|
HTTP protocol varsion. Allowed values: 1.0, 1.1, 2, 2.0, 2TLS, 2ONLY.
| |
http_content_decoding
|
CURLOPT_HTTP_CONTENT_DECODING
|
See libcurl documentation.
| |
http_transfer_decoding
|
CURLOPT_HTTP_TRANSFER_DECODING
|
See libcurl documentation.
| |
httpauth
|
CURLOPT_HTTPAUTH
|
HTTP-authorization method (CURLAUTH_NONE = 0, CURLAUTH_BASIC = (1<<0), CURLAUTH_DIGEST = (1<<1), CURLAUTH_GSSNEGOTIATE = (1<<2), CURLAUTH_NTLM = (1<<3), CURLAUTH_DIGEST_IE = (1<<4), CURLAUTH_NTLM_WB = (1<<5), CURLAUTH_ONLY = (1<<31), CURLAUTH_ANY = (~CURLAUTH_DIGEST_IE), CURLAUTH_ANYSAFE = (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))).
| |
httpget
|
CURLOPT_HTTPGET
|
Use GET HTTP method.
| |
httpheader
|
CURLOPT_HTTPHEADER
|
HTTP-headers.
| |
httppost
|
CURLOPT_HTTPPOST
|
Multipart/formdata HTTP POST to be made to pass data on to the server.
| |
httpproxytunnel
|
CURLOPT_HTTPPROXYTUNNEL
|
Tunnel all operations through a given HTTP proxy.
| |
ignore_content_length
|
CURLOPT_IGNORE_CONTENT_LENGTH
|
Ignore the Content-Length header. This is useful for Apache 1.x which will report incorrect content length for files over 2GB.
| |
interface
|
CURLOPT_INTERFACE
|
Interface name to use as outgoing network interface.
| |
ipresolve
|
CURLOPT_IPRESOLVE
|
1-use IPv4 (default), 2-use IPv6.
| |
issuercert
|
CURLOPT_ISSUERCERT
|
Filename holding a CA certificate.
| |
keypasswd
|
CURLOPT_KEYPASSWD
|
The password required to use the private key.
|
localport
|
CURLOPT_LOCALPORT
|
Local port.
| |
low_speed_limit
|
CURLOPT_LOW_SPEED_LIMIT
|
The transfer speed in bytes per second during low_speed_time.
| |
low_speed_time
|
CURLOPT_LOW_SPEED_TIME
|
The maxinum time in seconds that the transfer should be below the low_speed_limit for the library to consider it is too slow and abort.
| |
maxconnects
|
CURLOPT_MAXCONNECTS
|
The maximum amount of simultaneously open connections.
| |
maxfilesize
|
CURLOPT_MAXFILESIZE
|
If the file requested is larger than this value, the transfer will not start.
| |
maxredirs
|
CURLOPT_MAXREDIRS
|
Maximum number or redirects.
| |
nobody
|
CURLOPT_NOBODY
|
Use HEAD method.
| |
password
|
CURLOPT_PASSWORD
|
Password.
| |
port
|
CURLOPT_PORT
|
Port.
| |
post
|
CURLOPT_POST
|
Use POST method.
| |
postfields
|
CURLOPT_POSTFIELDS
|
The body of POST-request.
| |
postredir
|
CURLOPT_POSTREDIR
|
See libcurl documentation.
| |
proxy
|
CURLOPT_PROXY
|
Proxy-server address.
| |
proxyauth
|
CURLOPT_PROXYAUTH
|
Authorization type (see httpauth).
| |
proxyport
|
CURLOPT_PROXYPORT
|
Proxy-server port.
| |
proxytype
|
CURLOPT_PROXYTYPE
|
Proxy type:
0 - HTTP, 1 - HTTP_1_0, 4 - SOCKS4, 5 - SOCKS5, 6 - SOCKS4A, 7 - SOCKS5_HOSTNAME. | |
proxyuserpwd
|
CURLOPT_PROXYUSERPWD
|
Proxy-server user name and password.
| |
range
|
CURLOPT_RANGE
|
The specified range you want.
| |
referer
|
CURLOPT_REFERER
|
Referer header.
| |
ssl_cipher_list
|
CURLOPT_SSL_CIPHER_LIST
|
See libcurl documentation.
| |
ssl_sessionid_cache
|
CURLOPT_SSL_SESSIONID_CACHE
|
Enable or disable SSL session-ID caching.
| |
ssl_verifyhost
|
CURLOPT_SSL_VERIFYHOST
|
Verifies that the server cert is for the server it is known as.
| |
ssl_verifypeer
|
CURLOPT_SSL_VERIFYPEER
|
Verifies the authenticity of the peer's certificate.
| |
sslcert
|
CURLOPT_SSLCERT
|
File name of your certificate.
| |
sslcerttype
|
CURLOPT_SSLCERTTYPE
|
SSL-certificate type.
| |
sslengine
|
CURLOPT_SSLENGINE
|
See libcurl documentation.
| |
sslengine_default
|
CURLOPT_SSLENGINE_DEFAULT
|
See libcurl documentation.
| |
sslkey
|
CURLOPT_SSLKEY
|
File name of your private key.
| |
sslkeytype
|
CURLOPT_SSLKEYTYPE
|
SSL-key type.
| |
sslversion
|
CURLOPT_SSLVERSION
|
Protocol version for SSL/TLS connection:
0 - default 1 - TLSv1 (TLS 1.x), 2 - SSLv2, 3 - SSLv3, 4 - TLSv1_0, 5 - TLSv1_1, 6 - TLSv1_2. | |
stderr
|
CURLOPT_STDERR
|
Redirect stderr into specified stream.
| |
timeout
|
CURLOPT_TIMEOUT
|
Timeout in seconds.
| |
timeout_ms
|
CURLOPT_TIMEOUT_MS
|
Timeout in miliseconds.
| |
unrestricted_auth
|
CURLOPT_UNRESTRICTED_AUTH
|
Continue to send authentication when following locations, even when hostname changed.
| |
url
|
CURLOPT_URL
|
URL.
| |
useragent
|
CURLOPT_USERAGENT
|
User-Agent header.
| |
username
|
CURLOPT_USERNAME
|
User name.
| |
userpwd
|
CURLOPT_USERPWD
|
User name and password.
| |
verbose
|
CURLOPT_VERBOSE
|
Display a lot of verbose information about its operations into stderr.
|
Copyright © 19972021 Art. Lebedev Studio | http://www.artlebedev.com | Last updated: 26.01.2021 |