Requests_Transport_cURL::get_subrequest_handle( string $url, array $headers, string|array $data, array $options ): resource

In this article

Get the cURL handle for use in a multi-request

Parameters

$urlstringrequired
URL to request
$headersarrayrequired
Associative array of request headers
$datastring|arrayrequired
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
$optionsarrayrequired
Request options, see Requests::response() for documentation

Return

resource Subrequest’s cURL handle

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.