Base HTTP transport
| package | Requests |
|---|---|
| subpackage | Transport |
request(string $url, array $headers= array(), string|array $data= array(), array $options= array()) : string
stringURL to request
arrayAssociative array of request headers
stringarrayData to send either as the POST body, or as parameters in the URL for a GET/HEAD
arrayRequest options, see {@see Requests::response()} for documentation
stringRaw HTTP resultrequest_multiple(array $requests, array $options) : array
arrayRequest data (array of 'url', 'headers', 'data', 'options') as per {@see Requests_Transport::request}
arrayGlobal options, see {@see Requests::response()} for documentation
arrayArray of Requests_Response objects (may contain Requests_Exception or string responses as well)test() : boolean
boolean