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

CURL context options in PHP

WBOY
Release: 2023-09-02 06:04:01
forward
1521 people have browsed it

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template