| 1 |
; |
| 2 |
; CURLOPT global settings (mostly set for realtime) |
| 3 |
; |
| 4 |
[globals] |
| 5 |
;header=no ; Include header information in the result. Sets the CURLOPT_HEADER |
| 6 |
; option. (default: "no") |
| 7 |
;httpheader= ; Add additional HTTP headers; multiple calls adds multiple headers. |
| 8 |
; Setting a header will override any existing headers. |
| 9 |
;dnstimeout=60 ; Number of seconds to wait for DNS to be resolved. Sets the |
| 10 |
; CURLOPT_DNS_CACHE_TIMEOUT option. (default: 60) |
| 11 |
;ftptimeout=0 ; For FTP URIs, number of seconds to wait for a server response. |
| 12 |
; Sets the CURLOPT_FTP_RESPONSE_TIMEOUT option. (default: 0) |
| 13 |
;httptimeout=0 ; For HTTP(S) URIs, the number of seconds (for libcurl before 7.16.2) |
| 14 |
; or the number of milliseconds (after 7.16.2) to wait for a server |
| 15 |
; response. Sets the CURLOPT_TIMEOUT option before 7.16.2, |
| 16 |
; CURLOPT_TIMEOUT_MS after 7.16.2. (default: 0) |
| 17 |
;conntimeout=0 ; Number of seconds (for libcurl before 7.16.2) or the number of |
| 18 |
; milliseconds (after 7.16.2) to wait for a connection to succeed. |
| 19 |
; Sets the CURLOPT_CONNECTTIMEOUT option before 7.16.2, |
| 20 |
; CURLOPT_CONNECTTIMEOUT_MS after 7.16.2. (default: 300 or 300000) |
| 21 |
;userpwd=user:pass ; A username:password combination to use for authenticating requests. |
| 22 |
; Sets the CURLOPT_USERPWD option. (default: "") |
| 23 |
;followlocation=no ; Whether or not to follow HTTP 3xx redirects. Sets the |
| 24 |
; CURLOPT_FOLLOWLOCATION option. (default: "no") |
| 25 |
;maxredirs=30 ; Maximum number of redirects to follow. This only makes sense when |
| 26 |
; 'followlocation' is also set. Sets the CURLOPT_MAXREDIRS option. |
| 27 |
; Set to 0 to make libcurl refuse to redirect. Set to -1 for an |
| 28 |
; infinite number of redirects. (default: 30) |
| 29 |
;referer= ; Referer URL to use for the request. Sets the CURLOPT_REFERER option. |
| 30 |
; (default: "") |
| 31 |
;useragent= ; UserAgent string to use for the request; Sets the CURLOPT_USERAGENT |
| 32 |
; option. (default: "asterisk-libcurl-agent/1.0") |
| 33 |
;cookie= ; A cookie to send with the request. Multiple cookies are supported. |
| 34 |
; Sets the CURLOPT_COOKIE option. (default: "") |
| 35 |
;ftptext=no ; For FTP URIs, force a text transfer. Sets the CURLOPT_TRANSFERTEXT |
| 36 |
; option. (default: "no") |
| 37 |
;hashcompat= ; Assuming the responses will be in key1=value1&key2=value2 |
| 38 |
; format, reformat the response such that it can be used by the HASH |
| 39 |
; function. Can be "yes", "no", or "legacy", which will also translate |
| 40 |
; the + character to the space character, in violation of current RFC |
| 41 |
; standards. (default: "no") |
| 42 |
;failurecodes=404,408,503 ; A comma separated list of HTTP response codes to be treated as |
| 43 |
; errors. (default: "") |
| 44 |
|
| 45 |
; |
| 46 |
; Proxy configuration options |
| 47 |
; |
| 48 |
;proxy=myproxy.example.com ; Hostname or IP address to use as a proxy server. Sets the |
| 49 |
; CURLOPT_PROXY option. (default: "") |
| 50 |
;proxytype=http ; The type of proxy to use. Can be "http", "socks4", "socks4a", "socks5", |
| 51 |
; or "socks5hostname". Sets the CURLOPT_PROXYTYPE option. |
| 52 |
; (default: "http") |
| 53 |
;proxyport=8080 ; Port number of the proxy; sets the CURLOPT_PROXYPORT option. |
| 54 |
; (default: 0) |
| 55 |
;proxyuserpwd=user:pass ; A username:password combination to use for authenticating requests |
| 56 |
; through a proxy. Sets the CURLOPT_PROXYUSERPWD option. |
| 57 |
; (default: "") |
| 58 |
|
| 59 |
; |
| 60 |
; TLS configuration options |
| 61 |
; |
| 62 |
;ssl_verifypeer=yes ; Whether to verify the server certificate against a list of known root |
| 63 |
; certificate authorities. Sets the CURLOPT_SSL_VERIFYPEER option. |
| 64 |
; (default: "yes") |
| 65 |
;ssl_verifyhost=2 ; Whether to verify the host in the server's TLS certificate. Set to 2 |
| 66 |
; to verify the host, 0 to ignore the host. Sets the CURLOPT_SSL_VERIFYHOST |
| 67 |
; option. (default: 2) |
| 68 |
;ssl_cainfo=/path/to/ca.pem ; Path to a file holding one or more certificates to verify the peer's |
| 69 |
; certificate with. Only used when 'ssl_verifypeer' is enabled. Sets |
| 70 |
; the CURLOPT_CAINFO option. (default: "") |
| 71 |
;ssl_capath=/path/to/cas/ ; Path to a directory holding multiple CA certificates to verify the |
| 72 |
; peer's certificate with. Only used when 'ssl_verifypeer' is enabled. Sets |
| 73 |
; the CURLOPT_CAPATH option. (default: "") |
| 74 |
;ssl_cert=/path/to/client.pem ; Path to a file containing a client certificate. Default format is PEM, |
| 75 |
; and can be changed with 'ssl_certtype'. Sets the CURLOPT_SSLCERT option. |
| 76 |
; (default: "") |
| 77 |
;ssl_certtype=PEM ; The format of the ssl_cert file. Can be "PEM" or "DER". Sets the |
| 78 |
; CURLOPT_SSLCERTTYPE option. (default: "PEM") |
| 79 |
;ssl_key=/path/to/client.key ; Path to a file containing a client private key. Default format is PEM, |
| 80 |
; and can be changed with 'ssl_keytype'. Sets the CURLOPT_SSLKEY option. |
| 81 |
; (default: "") |
| 82 |
;ssl_keytype=PEM ; The format of the ssl_key file. Can be "PEM", "DER", or "ENG". Sets the |
| 83 |
; CURLOPT_SSLKEYTYPE option. (default: "PEM") |
| 84 |
;ssl_keypasswd=mysecret ; The passphrase to use the 'ssl_key' file. Sets the CURLOPT_KEYPASSWD |
| 85 |
; option. (default: "") |