CURL context options in PHP

PHPServer Side ProgrammingProgramming

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

MethodDescription
methodHTTP method supported by the remote server. Defaults to GET.
headerAdditional headers to be sent during request
user_agentValue to send with User-Agent: header.
contentAdditional data to be sent after the headers. This option is not used for GET or HEAD requests.
proxyURI specifying address of proxy server.
max_redirectsThe max number of redirects to follow. Defaults to 20.
curl_verify_ssl_hostVerify the host. Defaults to FALSE. available for both http and ftp protocol wrappers.
curl_verify_ssl_peerRequire verification of SSL certificate used. Defaults to FALSE. available for both http and ftp protocol wrappers.
raja
Published on 13-Nov-2020 12:18:12
Advertisements