Requests_Transport::request()publicWP 1.0

Perform a request

{} It's a method of the class: Requests_Transport{}

No Hooks.


String. Raw HTTP result


$Requests_Transport = new Requests_Transport();
$Requests_Transport->request( $url, $headers, $data, $options );
$url(string) (required)
URL to request
Associative array of request headers
Default: array()
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
Default: array()
Request options, see {@see Requests::response()} for documentation
Default: array()

Code of Requests_Transport::request() WP 6.0

public function request($url, $headers = array(), $data = array(), $options = array());