WPDev.one
Core Class

WP_Http_Curl

class WP_Http_Curl // Constructor: function Object() { [native code] }

Core class used to integrate Curl as an HTTP transport.

Methods 4 methods

Method / Return Description
request()
(array

Send a HTTP request to a URI using cURL extension.

Parameters: $url: mixed, $args: mixed
stream_headers()
int

Grabs the headers of the cURL request.

Parameters: $handle: mixed, $headers: mixed
stream_body()
int

Grabs the body of the cURL request.

Parameters: $handle: mixed, $data: mixed
test()
bool

Determines whether this class can be used for retrieving a URL.

Parameters: $args: mixed

Properties

Property / Type Description
$headers
mixed
public
No description available.
$body
mixed
public
No description available.
$max_body_length
mixed
public
No description available.
$stream_handle
mixed
public
No description available.
$bytes_written_total
mixed
public
No description available.

Class Information

Since Version
2.7.0
Source File
wp-includes/class-wp-http-curl.php
Advertisement