http_api_curl WordPress Action Hook

The http_api_curl hook allows you to modify the cURL request that is used to fetch remote resources. This is useful if you need to set custom cURL options or make other changes to how the HTTP request is made.

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.


Top ↑

Parameters

$handle

(resource)The cURL handle returned by curl_init() (passed by reference).

$parsed_args

(array)The HTTP request arguments.

$url

(string)The request URL.


Top ↑

Source

File: wp-includes/class-wp-http-curl.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.