\Zend_Http_Client_Adapter_Proxy
HTTP Proxy-supporting Zend_Http_Client adapter class, based on the default socket based adapter.
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.
- Copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Http_Client_Adapter_Proxy
extends Zend_Http_Client_Adapter_Socket
{
- // members
- protected array $config = ;
- protected boolean $negotiated = false;
- // Inherited members from Zend_Http_Client_Adapter_Socket
- protected resource|null $socket;
- protected array $connected_to;
- protected array $config;
- protected $method;
- // methods
- public void connect()
- public string write()
- protected void connectHandshake()
- public void close()
- public void __destruct()
- // Inherited methods from Zend_Http_Client_Adapter_Socket
- public void __construct()
- public void setConfig()
- public void connect()
- public string write()
- public string read()
- public void close()
- public void __destruct()
Hierarchy
Extends
Members
protected
- $config
—
array
Parameters array - $config
—
array
Parameters array - $connected_to
—
array
What host/port are we connected to? - $method
—
string
Request method - will be set by write() and might be used by read() - $negotiated
—
boolean
Whether HTTPS CONNECT was already negotiated with the proxy or not - $socket
—
resource|null
The socket for server connection
Methods
protected
- connectHandshake() — Preform handshaking with HTTPS proxy using CONNECT method
public
- __destruct() — Destructor: make sure the socket is disconnected
- close() — Close the connection to the server
- connect() — Connect to the remote server
- write() — Send request to the proxy server
Inherited from Zend_Http_Client_Adapter_Socket
public
- close() — Close the connection to the server
- connect() — Connect to the remote server
- read() — Read response from server
- setConfig() — Set the configuration array for the adapter
- write() — Send request to the remote server