WP_Http_Curl::request

SummerySummery

Send a HTTP request to a URI using cURL extension.

Syntax

WP_Http_Curl::request( string $url, string|array $args = array() )

ParametersParameters

$url

(string) (Required) The request URL.

$args

(string|array) (Optional) Override the defaults.

Default value: array()

ReturnReturn

(array|WP_Error) Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top