Zend Framework
1.12
|
Public Member Functions | |
connect ($host, $port=80, $secure=false) | |
Connect to the remote server. | |
write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '') | |
Send request to the proxy server. | |
close () | |
Close the connection to the server. | |
__destruct () | |
Destructor: make sure the socket is disconnected. | |
![]() | |
__construct () | |
Adapter constructor, currently empty. | |
setConfig ($config=array()) | |
Set the configuration array for the adapter. | |
getConfig () | |
Retrieve the array of all configuration options. | |
setStreamContext ($context) | |
Set the stream context for the TCP connection to the server. | |
getStreamContext () | |
Get the stream context for the TCP connection to the server. | |
connect ($host, $port=80, $secure=false) | |
Connect to the remote server. | |
write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '') | |
Send request to the remote server. | |
read () | |
Read response from server. | |
close () | |
Close the connection to the server. | |
setOutputStream ($stream) | |
Set output stream for the response. | |
__destruct () | |
Destructor: make sure the socket is disconnected. | |
Protected Member Functions | |
connectHandshake ($host, $port=443, $http_ver= '1.1', array &$headers=array()) | |
Preform handshaking with HTTPS proxy using CONNECT method. | |
![]() | |
_checkSocketReadTimeout () | |
Check if the socket has timed out - if so close connection and throw an exception. | |
Protected Attributes | |
$config | |
$negotiated = false | |
$connectHandshakeRequest | |
![]() | |
$socket = null | |
$connected_to = array(null, null) | |
$out_stream = null | |
$config | |
$method = null | |
$_context = null | |
__destruct | ( | ) |
Destructor: make sure the socket is disconnected.
close | ( | ) |
Close the connection to the server.
Implements Zend_Http_Client_Adapter_Interface.
connect | ( | $host, | |
$port = 80 , |
|||
$secure = false |
|||
) |
Connect to the remote server.
Will try to connect to the proxy server. If no proxy was set, will fall back to the target server (behave like regular Socket adapter)
string | $host | |
int | $port | |
boolean | $secure |
Implements Zend_Http_Client_Adapter_Interface.
|
protected |
Preform handshaking with HTTPS proxy using CONNECT method.
string | $host | |
integer | $port | |
string | $http_ver | |
array | $headers |
Zend_Http_Client_Adapter_Exception |
write | ( | $method, | |
$uri, | |||
$http_ver = '1.1' , |
|||
$headers = array() , |
|||
$body = '' |
|||
) |
Send request to the proxy server.
string | $method | |
Zend_Uri_Http | $uri | |
string | $http_ver | |
array | $headers | |
string | $body |
Zend_Http_Client_Adapter_Exception |
Implements Zend_Http_Client_Adapter_Interface.
|
protected |
|
protected |
|
protected |