Sends an HTTP request.
public request ( string $method, string | Horde_Url $uri = null, string | array $data = null, array $headers = [] ) : Horde_Http_Response_Base | ||
$method | string | HTTP request method (GET, PUT, etc.) |
$uri | string | Horde_Url | URI to request, if different from $this->uri |
$data | string | array | Request data. Array of form data that will be encoded automatically, or a raw string. |
$headers | array | Any headers specific to this request. They will be combined with $this->_headers, and override headers of the same name for this request only. |
return | Horde_Http_Response_Base |