JHttpTransportCurl::request
Send a request to the server and return a JHttpResponse object with the response.
Signature
public function request(string
$method,
[JUri
$uri = null,
[mixed
$data = null,
[array
$headers = null,
[integer
$timeout = null,
[string
$userAgent = null]]]]] )
Parameters
-
$method
- The HTTP method for sending the request.
-
$uri
- The URI to the resource to request.
-
$data
- Either an associative array or a string to be sent with the request.
-
$headers
- An array of request headers to send with the request.
-
$timeout
- Read timeout in seconds.
-
$userAgent
- The optional user agent string to send with the request.
Returns
- JHttpResponse
Errors/Exceptions
-
RuntimeException
Defined by Interface
JHttpTransport