Horde_Http_Request_Curl extends Horde_Http_Request_Base
HTTP request object for the curl backend.
Tags
Table of Contents
- $authenticationScheme : string
- $data : array<string|int, mixed>|string
- $headers : array<string|int, mixed>
- $method : string
- $password : string
- $proxyAuthenticationScheme : string
- $proxyPassword : string
- $proxyPort : int
- $proxyServer : string
- $proxyType : int
- $proxyUsername : string
- $redirects : int
- $timeout : int
- $uri : string|Horde_Url
- $userAgent : string
- $username : string
- $verifyPeer : bool
- $_headers : array<string|int, mixed>
- Request headers
- $_httpAuthSchemes : array<string|int, mixed>
- Map of HTTP authentication schemes from Horde_Http constants to HTTP_AUTH constants.
- $_options : array<string|int, mixed>
- __construct() : mixed
- Constructor
- __get() : mixed
- Get an adapter parameter
- __set() : mixed
- Set a request parameter
- getDefaultOptions() : mixed
- getHeader() : string
- Get the current value of $header
- send() : Horde_Http_Response_Base
- Send this HTTP request
- setHeaders() : mixed
- Set one or more headers
- setOptions() : mixed
- _httpAuthScheme() : const
- Translate a Horde_Http::AUTH_* constant to CURLAUTH_*
Properties
$authenticationScheme
public
string
$authenticationScheme
Authentication method, one of the Horde_Http::AUTH_* constants.
$data
public
array<string|int, mixed>|string
$data
POST data fields or POST/PUT data body.
$headers
public
array<string|int, mixed>
$headers
Hash with additional request headers.
$method
public
string
$method
Default request method if not specified for individual requests.
$password
public
string
$password
Authentication password.
$proxyAuthenticationScheme
public
string
$proxyAuthenticationScheme
Proxy authentication method, one of the Horde_Http::AUTH_* constants.
$proxyPassword
public
string
$proxyPassword
Proxy authentication password.
$proxyPort
public
int
$proxyPort
Port number of a proxy server.
$proxyServer
public
string
$proxyServer
Host name of a proxy server.
$proxyType
public
int
$proxyType
Proxy server type, one of the Horde_Http::PROXY_* constants.
$proxyUsername
public
string
$proxyUsername
Proxy authentication user name.
$redirects
public
int
$redirects
Maximum number of redirects to follow.
$timeout
public
int
$timeout
Timeout in seconds.
$uri
public
string|Horde_Url
$uri
Default URI if not specified for individual requests.
$userAgent
public
string
$userAgent
User-Agent: request header contents.
$username
public
string
$username
Authentication user name.
$verifyPeer
public
bool
$verifyPeer
Verify SSL peer certificates?
$_headers
Request headers
protected
array<string|int, mixed>
$_headers
= array()
$_httpAuthSchemes
Map of HTTP authentication schemes from Horde_Http constants to HTTP_AUTH constants.
protected
array<string|int, mixed>
$_httpAuthSchemes
= array(Horde_Http::AUTH_ANY => CURLAUTH_ANY, Horde_Http::AUTH_BASIC => CURLAUTH_BASIC, Horde_Http::AUTH_DIGEST => CURLAUTH_DIGEST, Horde_Http::AUTH_GSSNEGOTIATE => CURLAUTH_GSSNEGOTIATE, Horde_Http::AUTH_NTLM => CURLAUTH_NTLM)
$_options
protected
array<string|int, mixed>
$_options
= array()
Methods
__construct()
Constructor
public
__construct([mixed $args = array() ]) : mixed
Parameters
- $args : mixed = array()
Tags
Return values
mixed —__get()
Get an adapter parameter
public
__get(string $name) : mixed
Parameters
- $name : string
-
The parameter to get.
Return values
mixed —Parameter value.
__set()
Set a request parameter
public
__set(string $name, mixed $value) : mixed
Parameters
- $name : string
-
The parameter to set.
- $value : mixed
-
Parameter value.
Return values
mixed —getDefaultOptions()
public
getDefaultOptions() : mixed
Return values
mixed —getHeader()
Get the current value of $header
public
getHeader(string $header) : string
Parameters
- $header : string
-
Header name to get
Return values
string —$header's current value
send()
Send this HTTP request
public
send() : Horde_Http_Response_Base
Tags
Return values
Horde_Http_Response_Base —setHeaders()
Set one or more headers
public
setHeaders(mixed $headers[, string $value = null ]) : mixed
Parameters
- $headers : mixed
-
A hash of header + value pairs, or a single header name
- $value : string = null
-
A header value
Return values
mixed —setOptions()
public
setOptions([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
Return values
mixed —_httpAuthScheme()
Translate a Horde_Http::AUTH_* constant to CURLAUTH_*
protected
_httpAuthScheme(mixed $httpAuthScheme) : const
Parameters
- $httpAuthScheme : mixed