Moodle  2.2.1
http://www.collinsharper.com
Zend_Http_Client_Adapter_Proxy Class Reference
Inheritance diagram for Zend_Http_Client_Adapter_Proxy:
Collaboration diagram for Zend_Http_Client_Adapter_Proxy:

Public Member Functions

 connect ($host, $port=80, $secure=false)
 write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '')
 close ()
 __destruct ()

Protected Member Functions

 connectHandshake ($host, $port=443, $http_ver= '1.1', array &$headers=array())

Protected Attributes

 $config
 $negotiated = false

Detailed Description

Definition at line 52 of file Proxy.php.


Constructor & Destructor Documentation

Destructor: make sure the socket is disconnected

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 280 of file Proxy.php.

Here is the call graph for this function:


Member Function Documentation

close ( )

Close the connection to the server

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 270 of file Proxy.php.

Here is the caller graph for this function:

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)

Parameters:
string$host
int$port
boolean$secure

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 89 of file Proxy.php.

connectHandshake ( host,
port = 443,
http_ver = '1.1',
array &$  headers = array() 
) [protected]

Preform handshaking with HTTPS proxy using CONNECT method

Parameters:
string$host
integer$port
string$http_ver
array$headers

Definition at line 202 of file Proxy.php.

Here is the call graph for this function:

Here is the caller graph for this function:

write ( method,
uri,
http_ver = '1.1',
headers = array(),
body = '' 
)

Send request to the proxy server

Parameters:
string$method
Zend_Uri_Http$uri
string$http_ver
array$headers
string$body
Returns:
string Request as string

Reimplemented from Zend_Http_Client_Adapter_Socket.

Reimplemented in Zend_Gdata_HttpAdapterStreamingProxy.

Definition at line 119 of file Proxy.php.

Here is the call graph for this function:


Field Documentation

$config [protected]
Initial value:
 array(
        'ssltransport'  => 'ssl',
        'sslcert'       => null,
        'sslpassphrase' => null,
        'sslusecontext' => false,
        'proxy_host'    => '',
        'proxy_port'    => 8080,
        'proxy_user'    => '',
        'proxy_pass'    => '',
        'proxy_auth'    => Zend_Http_Client::AUTH_BASIC,
        'persistent'    => false
    )

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 59 of file Proxy.php.

$negotiated = false [protected]

Definition at line 77 of file Proxy.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations