do_action_ref_array( ‘http_api_curl’, resource $handle, array $parsed_args, string $url )

In this article

Fires before the cURL request is executed.

Description

Cookies are not currently handled by the HTTP API. This action allows plugins to handle cookies themselves.

Parameters

$handleresource
The cURL handle returned by curl_init() (passed by reference).
$parsed_argsarray
The HTTP request arguments.
$urlstring
The request URL.

Source

do_action_ref_array( 'http_api_curl', array( &$handle, $parsed_args, $url ) );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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