Home >Backend Development >PHP Tutorial >CURL context options in PHP

CURL context options in PHP

WBOY
WBOYforward
2023-09-01 23:37:051536browse

CURL context options in PHP

Introduction

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete