Horde_Http_Request_Fopen extends Horde_Http_Request_Base
HTTP request object for the fopen 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
- $_errors : array<string|int, mixed>
- Catched errors from the error handler.
- $_headers : array<string|int, mixed>
- Request headers
- $_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
- _errorHandler() : mixed
- PHP error handler.
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?
$_errors
Catched errors from the error handler.
protected
array<string|int, mixed>
$_errors
= array()
$_headers
Request headers
protected
array<string|int, mixed>
$_headers
= array()
$_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 —_errorHandler()
PHP error handler.
protected
_errorHandler(int $errno, string $errstr, string $errfile, int $errline, array<string|int, mixed> $errcontext) : mixed
Parameters
- $errno : int
-
See set_error_handler().
- $errstr : string
-
See set_error_handler().
- $errfile : string
-
See set_error_handler().
- $errline : int
-
See set_error_handler().
- $errcontext : array<string|int, mixed>
-
See set_error_handler().