CURLOPT()
Synopsis
Sets various options for future invocations of CURL.
Description
Options may be set globally or per channel. Per-channel settings will override global settings.
Syntax
CURLOPT(key)
Arguments
key
cookie
- A cookie to send with the request. Multiple cookies are supported.conntimeout
- Number of seconds to wait for a connection to succeeddnstimeout
- Number of seconds to wait for DNS to be resolvedftptext
- For FTP URIs, force a text transfer (boolean)ftptimeout
- For FTP URIs, number of seconds to wait for a server responseheader
- Include header information in the result (boolean)httptimeout
- For HTTP(S) URIs, number of seconds to wait for a server responsemaxredirs
- Maximum number of redirects to followproxy
- Hostname or IP address to use as a proxy serverproxytype
- Type ofproxy
http
socks4
socks5
proxyport
- Port number of theproxy
proxyuserpwd
- A username:
password combination to use for authenticating requests through aproxy
referer
- Referer URL to use for the requestuseragent
- UserAgent string to use for the requestuserpwd
- A username:
password to use for authentication when the server response to an initial request indicates a 401 status code.ssl_verifypeer
- Whether to verify the server certificate against a list of known root certificate authorities (boolean).hashcompat
- Assuming the responses will be inkey1=value1&key2=value2
format, reformat the response such that it can be used by theHASH
function.yes
no
legacy
- Also translate+
to the space character, in violation of current RFC standards.
See Also
Import Version
This documentation was imported from Asterisk Version SVN-branch-13-r420538