Method to check if http transport stream available for use
static bool
isSupported
()
Implementation of:
- JHttpTransport::isSupported()
- Method to check if HTTP transport is available for use
Method to get a response object from a server response.
-
array
$headers: The response headers as an array.
-
string
$body: The response body as a string.
Send a request to the server and return a JHttpResponse object with the response.
JHttpResponse
request
(
string $method,
JUri $uri, [
mixed $data =
null], [
array $headers =
null], [
integer $timeout =
null], [
string $userAgent =
null])
-
string
$method: The HTTP method for sending the request.
-
JUri
$uri: The URI to the resource to request.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of request headers to send with the request.
-
integer
$timeout: Read timeout in seconds.
-
string
$userAgent: The optional user agent string to send with the request.
Implementation of:
- JHttpTransport::request()
- Send a request to the server and return a JHttpResponse object with the response.