Home >Backend Development >PHP Tutorial >CURL context options in PHP
CURL Contextual options are available when compiling the CURL extension using --with-curlwrappers Configuration options. Given below is the list of CURL wrapper context options
Method | Description |
---|---|
Method | HTTP method supported by the remote server. Default is GET. |
Headers | Additional headers sent during the request |
user_agent | Values sent with the User-Agent: header. |
Content | Additional data sent after the header. This option is not used for GET or HEAD requests. |
Proxy | Specifies the URI of the proxy server address. |
max_redirects | The maximum number of redirects to follow. Default is 20. |
curl_verify_ssl_host | Verify host. Default is FALSE. Works with http and ftp protocol wrappers. |
curl_verify_ssl_peer | Requires verification of the SSL certificate used. Default is FALSE. Works with http and ftp protocol wrappers. |
The above is the detailed content of CURL context options in PHP. For more information, please follow other related articles on the PHP Chinese website!