cURL HTTP transport
package | Requests |
---|---|
subpackage | Transport |
__construct()
__destruct()
get_subrequest_handle(string $url, array $headers, string|array $data, array $options) : resource
string
URL to request
array
Associative array of request headers
string
array
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
array
Request options, see {@see Requests::response()} for documentation
resource
Subrequest's cURL handleprocess_response(string $response, array $options) : string
string
Response data from the body
array
Request options
string
HTTP response data including headersrequest(string $url, array $headers= array()
, string|array $data= array()
, array $options= array()
) : string
inherited_from | \Requests_Transport::request() |
---|
string
URL to request
array
Associative array of request headers
string
array
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
array
Request options, see {@see Requests::response()} for documentation
\Requests_Exception |
On a cURL error (`curlerror`) |
---|
string
Raw HTTP resultrequest_multiple(array $requests, array $options) : array
inherited_from | \Requests_Transport::request_multiple() |
---|
array
Request data
array
Global options
array
Array of Requests_Response objects (may contain Requests_Exception or string responses as well)stream_body(resource $handle, string $data) : integer
since | 1.6.1 |
---|
resource
cURL resource
string
Body data
integer
Length of provided datastream_headers(resource $handle, string $headers) : integer
resource
cURL resource
string
Header string
integer
Length of provided headertest($capabilities = array()
) : boolean
codeCoverageIgnore | |
---|---|
inherited_from | \Requests_Transport::test() |
boolean
True if the transport is valid, false otherwise.format_get(string $url, array|object $data) : string
string
string
URL with datasetup_handle(string $url, array $headers, string|array $data, array $options)
string
URL to request
array
Associative array of request headers
string
array
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
array
Request options, see {@see Requests::response()} for documentation
$headers : string
''
$info : array
$response_data : string
''
$version : \long
$done_headers : boolean
false
$handle : resource
$hooks : \Requests_Hooks
$response_byte_limit : integer | boolean
$response_bytes : integer
$stream_handle : resource
CURL_7_10_5 = 461317
CURL_7_16_2 = 462850