Should be used if proxy HTTP access is required. If no proxy is set, will
fall back to Zend_Http_Client_Adapter_Socket behavior. Just like the
default Socket adapter, this adapter does not require any special extensions
installed.
Get the stream context for the TCP connection to the server.
getStreamContext() : resource
Inherited
If no stream context is set, will create a default one.
Returns
resource
Set the stream context for the TCP connection to the server
setStreamContext(mixed $context) : \Zend_Http_Client_Adapter_Socket
Inherited
Can accept either a pre-existing stream context resource, or an array
of stream options, similar to the options array passed to the
stream_context_create() PHP function. In such case a new stream context
will be created using the passed options.
Parameters
$context
mixed
Stream context or array of context options
Returns
\Zend_Http_Client_Adapter_Socket
Send request to the proxy server with streaming support
write(string $method, \Zend_Uri_Http $uri, string $http_ver = '1.1'
, array $headers = array()
, string $body = ''
) : string
inherited_from |
\Zend_Http_Client_Adapter_Proxy::write() |
Parameters
$method
string
$uri
\Zend_Uri_Http
$http_ver
string
$headers
array
$body
string
Returns
string
Request as string
Send request to the remote server
write(string $method, \Zend_Uri_Http $uri, string $http_ver = '1.1'
, array $headers = array()
, string $body = ''
) : string
Inherited
inherited_from |
\Zend_Http_Client_Adapter_Interface::write() |
Parameters
$method
string
$uri
\Zend_Uri_Http
$http_ver
string
$headers
array
$body
string
Returns
string
Request as string
Preform handshaking with HTTPS proxy using CONNECT method
connectHandshake(string $host, integer $port = 443
, string $http_ver = '1.1'
, array $headers = array()
) : void
Inherited
Parameters
$host
string
$port
integer
$http_ver
string
$headers
array
Exceptions
\Zend_Http_Client_Adapter_Exception |
|