Warning! You are currently reading the documentation for Requests 1.x.
It is recommended to upgrade to Requests 2.x at your earliest convenience.
Upgrading to Requests 2.x is fairly straight-forward.
A full list of the changes can be found in the Changelog.
Visit the documentation for Requests_Transport_cURL
in Requests 2.x.
Class Requests_Transport_cURL
cURL HTTP transport
- Requests_Transport_cURL implements Requests_Transport
public
|
|
public
|
|
public
string
|
|
public
array
|
|
public
resource
&
|
#
get_subrequest_handle( string $url, array $headers, string|array $data, array $options )
Get the cURL handle for use in a multi-request |
protected
|
#
setup_handle( string $url, array $headers, string|array $data, array $options )
Setup the cURL handle for the given data |
public
string|false
|
|
public
integer
|
|
public
integer
|
|
protected static
string
|
|
public static
boolean
|
|
protected
string
|
#
get_expect_header( string|array $data )
Get the correct "Expect" header for the given request data. |
integer |
CURL_7_10_5
|
#
0x070A05
|
integer |
CURL_7_16_2
|
#
0x071002
|
public
string
|
$headers
Raw HTTP data |
#
''
|
public
string
|
$response_data
Raw body data |
#
''
|
public
array
|
$info
Information on the current request |
|
public
integer
|
$version
cURL version number |
|
protected
resource
|
$handle
cURL handle |
|
protected
|
$hooks
Hook dispatcher instance |
|
protected
boolean
|
$done_headers
Have we finished the headers yet? |
#
false
|
protected
resource
|
$stream_handle
If streaming to a file, keep the file pointer |
|
protected
integer
|
$response_bytes
How many bytes are in the response body? |
|
protected
integer|boolean
|
$response_byte_limit
What's the maximum number of bytes we should keep? |