On this page
do_action_ref_array( 'http_api_curl', resource $handle, array $parsed_args, string $url )
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
File: wp-includes/class-wp-http-curl.php. View all references
do_action_ref_array( 'http_api_curl', array( &$handle, $parsed_args, $url ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_HTTP_Requests_Hooks::dispatch() wp-includes/class-wp-http-requests-hooks.php | Dispatch a Requests hook to a native WordPress action. |
| WP_Http_Curl::request() wp-includes/class-wp-http-curl.php | Send a HTTP request to a URI using cURL extension. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/http_api_curl