Methods summary
public
|
#
__construct( array $args = array() )
Horde_Http_Client constructor.
Horde_Http_Client constructor.
Parameters
- $args
- <p>Any Http_Client settings to initialize in the
constructor. Available settings are:
- client.httpMethodOverride
- request
- request.uri
- request.headers
- request.method
- request.data
- request.username
- request.password
- request.authenticationScheme
- request.proxyServer
- request.proxyPort
- request.proxyType
- request.proxyUsername
- request.proxyPassword
- request.proxyAuthenticationScheme
- request.timeout</p>
|
public
Horde_Http_Response_Base
|
#
get( mixed $uri = null, mixed $headers = array() )
Send a GET request
Returns
Throws
|
public
Horde_Http_Response_Base
|
#
post( mixed $uri = null, mixed $data = null, mixed $headers = array() )
Send a POST request
Returns
Throws
|
public
Horde_Http_Response_Base
|
#
put( mixed $uri = null, mixed $data = null, mixed $headers = array() )
Send a PUT request
Returns
Throws
|
public
Horde_Http_Response_Base
|
#
delete( mixed $uri = null, mixed $headers = array() )
Send a DELETE request
Returns
Throws
|
public
?
|
#
head( mixed $uri = null, mixed $headers = array() )
Send a HEAD request
Returns
? Probably just the status
Throws
|
public
Horde_Http_Response_Base
|
#
request( string $method, string $uri = null, mixed $data = null, array $headers = array() )
Send an HTTP request
Parameters
- $method
- HTTP request method (GET, PUT, etc.)
- $uri
- URI to request, if different from $this->uri
- $data
- <p>Request data. Can be an array of form data that
will be encoded automatically, or a raw string.</p>
- $headers
- <p>Any headers specific to this request. They will
be combined with $this->_headers, and override
headers of the same name for this request only.</p>
Returns
Throws
|
public
mixed
|
#
__get( string $name )
Get a client parameter
Parameters
- $name
- The parameter to get.
Returns
mixed Parameter value.
|
public
|
#
__set( string $name, mixed $value )
Set a client parameter
Parameters
- $name
- The parameter to set.
- $value
- Parameter value.
|