Main interface for HTTP requests
Description
This method initiates a request and sends it via a transport before parsing.
See also
Parameters
$url
stringrequired- URL to request
$headers
arrayoptional- Extra headers to send with the request
Default:
array()
$data
array|nulloptional- Data to send either as a query string for GET/HEAD requests, or in the body for POST requests
Default:
array()
$type
stringoptional- HTTP request type (use Requests constants)
Default:
Requests::GET
$options
arrayoptional- Options for the request (see Requests::request)
Default:
array()
User Contributed Notes
You must log in before being able to contribute a note or feedback.