|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
| __destruct | ( | ) |
Destructor: make sure the socket is disconnected
Reimplemented from Zend_Http_Client_Adapter_Socket.
Definition at line 280 of file Proxy.php.

| close | ( | ) |
Close the connection to the server
Reimplemented from Zend_Http_Client_Adapter_Socket.
Definition at line 270 of file Proxy.php.

| 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 |
Reimplemented from Zend_Http_Client_Adapter_Socket.
| connectHandshake | ( | $ | host, |
| $ | port = 443, |
||
| $ | http_ver = '1.1', |
||
| array &$ | headers = array() |
||
| ) | [protected] |
Send request to the proxy server
| string | $method | |
| Zend_Uri_Http | $uri | |
| string | $http_ver | |
| array | $headers | |
| string | $body |
Reimplemented from Zend_Http_Client_Adapter_Socket.
Reimplemented in Zend_Gdata_HttpAdapterStreamingProxy.
Definition at line 119 of file Proxy.php.

$config [protected] |
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.