$httpMethodOverride
$httpMethodOverride : boolean
@see $_httpMethodOverride
An HTTP client.
$_request : \Horde_Http_Request_Base
The current HTTP request.
$_lastRequest : \Horde_Http_Request_Base
The previous HTTP request.
$_lastResponse : \Horde_Http_Response_Base
The most recent HTTP response.
get(string $uri = null, array $headers = array()) : \Horde_Http_Response_Base
Sends a GET request.
string | $uri | Request URI. |
array | $headers | Additional request headers. |
post(string $uri = null, array|string $data = null, array $headers = array()) : \Horde_Http_Response_Base
Sends a POST request.
string | $uri | Request URI. |
array|string | $data | Data fields or data body. |
array | $headers | Additional request headers. |
put(string $uri = null, string $data = null, array $headers = array()) : \Horde_Http_Response_Base
Sends a PUT request.
string | $uri | Request URI. |
string | $data | Data body. |
array | $headers | Additional request headers. |
delete(string $uri = null, array $headers = array()) : \Horde_Http_Response_Base
Sends a DELETE request.
string | $uri | Request URI. |
array | $headers | Additional request headers. |
head(string $uri = null, array $headers = array()) : \Horde_Http_Response_Base
Sends a HEAD request.
string | $uri | Request URI. |
array | $headers | Additional request headers. |
request(string $method, string|\Horde_Url $uri = null, string|array $data = null, array $headers = array()) : \Horde_Http_Response_Base
Sends an HTTP request.
string | $method | HTTP request method (GET, PUT, etc.) |
string|\Horde_Url | $uri | URI to request, if different from $this->uri |
string|array | $data | Request data. Array of form data that will be encoded automatically, or a raw string. |
array | $headers | Any headers specific to this request. They will be combined with $this->_headers, and override headers of the same name for this request only. |