Http
class Http
HTTP client class.
Methods
Get an option from the HTTP client.
Method to send the OPTIONS command to the server.
Method to send the HEAD command to the server.
Method to send the GET command to the server.
Method to send the POST command to the server.
Method to send the PUT command to the server.
Method to send the DELETE command to the server.
Method to send the TRACE command to the server.
Details
Response
options(
string $url,
array $headers = null,
integer $timeout = null)
Method to send the OPTIONS command to the server.
Response
head(
string $url,
array $headers = null,
integer $timeout = null)
Method to send the HEAD command to the server.
Response
get(
string $url,
array $headers = null,
integer $timeout = null)
Method to send the GET command to the server.
Response
post(
string $url,
mixed $data,
array $headers = null,
integer $timeout = null)
Method to send the POST command to the server.
Response
put(
string $url,
mixed $data,
array $headers = null,
integer $timeout = null)
Method to send the PUT command to the server.
Response
delete(
string $url,
array $headers = null,
integer $timeout = null)
Method to send the DELETE command to the server.
Response
trace(
string $url,
array $headers = null,
integer $timeout = null)
Method to send the TRACE command to the server.
Response
patch(
string $url,
mixed $data,
array $headers = null,
integer $timeout = null)
Method to send the PATCH command to the server.