Constructor.
Redefined in descendants as:
Method to send the DELETE command to the server.
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Method to send the GET command to the server.
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Get an option from the HTTP client.
mixed
getOption
(string $key)
-
string
$key: The name of the option to get.
Method to send the HEAD command to the server.
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Method to send the OPTIONS command to the server.
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Method to send the POST command to the server.
JHttpResponse
post
(
string $url,
mixed $data, [
array $headers =
null])
-
string
$url: Path to the resource.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Method to send the PUT command to the server.
JHttpResponse
put
(
string $url,
mixed $data, [
array $headers =
null])
-
string
$url: Path to the resource.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of name-value pairs to include in the header of the request.
Set an option for the HTTP client.
JHttp
setOption
(
string $key,
mixed $value)
-
string
$key: The name of the option to set.
-
mixed
$value: The option value to set.
Method to send the TRACE command to the server.
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.