Base HTTP transport
package | Requests |
---|---|
subpackage | Transport |
request(string $url, array $headers= array()
, string|array $data= array()
, array $options= array()
) : string
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
string
Raw HTTP resultrequest_multiple(array $requests, array $options) : array
array
Request data (array of 'url', 'headers', 'data', 'options') as per {@see Requests_Transport::request}
array
Global options, see {@see Requests::response()} for documentation
array
Array of Requests_Response objects (may contain Requests_Exception or string responses as well)test() : boolean
boolean