
- PHP 7 Tutorial
- PHP 7 - Home
- PHP 7 - Introduction
- PHP 7 - Performance
- PHP 7 - Environment Setup
- PHP 7 - Scalar Type Declarations
- PHP 7 - Return Type Declarations
- PHP 7 - Null Coalescing Operator
- PHP 7 - Spaceship Operator
- PHP 7 - Constant Arrays
- PHP 7 - Anonymous Classes
- PHP 7 - Closure::call()
- PHP 7 - Filtered unserialize()
- PHP 7 - IntlChar
- PHP 7 - CSPRNG
- PHP 7 - Expectations
- PHP 7 - use Statement
- PHP 7 - Error Handling
- PHP 7 - Integer Division
- PHP 7 - Session Options
- PHP 7 - Deprecated Features
- PHP 7 - Removed Extensions & SAPIs
- PHP 7 Useful Resources
- PHP 7 - Quick Guide
- PHP 7 - Useful Resources
- PHP 7 - Discussion
CURL context options in PHP
Introduction
CURL context options are available when the CURL extension was compiled using the --with-curlwrappers configure option. Given below is list of CURL wrapper context options
Method | Description |
---|---|
method | HTTP method supported by the remote server. Defaults to GET. |
header | Additional headers to be sent during request |
user_agent | Value to send with User-Agent: header. |
content | Additional data to be sent after the headers. This option is not used for GET or HEAD requests. |
proxy | URI specifying address of proxy server. |
max_redirects | The max number of redirects to follow. Defaults to 20. |
curl_verify_ssl_host | Verify the host. Defaults to FALSE. available for both http and ftp protocol wrappers. |
curl_verify_ssl_peer | Require verification of SSL certificate used. Defaults to FALSE. available for both http and ftp protocol wrappers. |
- Related Articles
- PHP FTP context options
- PHP HTTP context options
- PHP MongoDB context options
- PHP Phar context options
- PHP Socket context options
- PHP SSL context options
- PHP Zip context options
- PHP Context Parameters
- How to Curl Hair?
- cURL Command Without Using Cache
- Https connection using curl on Linux
- Linux Commands Comparison curl vs wget
- Calling Web Service Using Curl With Telnet Connection
- Context api in React.js
- Context API in ReactJS

Advertisements