## Zend_Http_Client_Adapter_Proxy

Description

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.

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Http/Client/Adapter/Proxy.php (line 44)

    Zend_Http_Client_Adapter_Socket
       |
       --Zend_Http_Client_Adapter_Proxy

Variable Summary
array $config
Method Summary
void __destruct ()
void connect (string $host, [int $port = 80], [boolean $secure = false], int $timeout)
string write (string $method, Zend_Uri_Http $uri, [string $http_ver = '1.1'], [array $headers = array()], [string $body = ''])
Variables
array $config = array(
'ssltransport' => 'sslv2',
'proxy_host' => '',
'proxy_port' => 8080,
'proxy_user' => '',
'proxy_pass' => '',
'proxy_auth' => Zend_Http_Client::AUTH_BASIC
) (line 51)

Parameters array

- access: protected

Redefinition of:

Zend_Http_Client_Adapter_Socket::$config
  Parameters array

#### Inherited Variables

Inherited from Zend_Http_Client_Adapter_Socket

> Zend_Http_Client_Adapter_Socket::$connected_to
> Zend_Http_Client_Adapter_Socket::$method
> Zend_Http_Client_Adapter_Socket::$socket

Methods
Destructor __destruct (line 162)

Destructor: make sure the socket is disconnected

- access: public

void __destruct ()

Redefinition of:

Zend_Http_Client_Adapter_Socket::__destruct()
  Destructor: make sure the socket is disconnected

connect (line 71)

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)

- access: public

void connect (string $host, [int $port = 80], [boolean $secure = false], int $timeout)

- string $host
- int $port
- boolean $secure
- int $timeout

Redefinition of:

Zend_Http_Client_Adapter_Socket::connect()
  Connect to the remote server

write (line 114)

Send request to the proxy server

- return: Request as string
- access: public

string write (string $method, Zend_Uri_Http $uri, [string $http_ver = '1.1'], [array $headers = array()], [string $body = ''])

- string $method
- Zend_Uri_Http $uri
- string $http_ver
- array $headers
- string $body

Redefinition of:

Zend_Http_Client_Adapter_Socket::write()
  Send request to the remote server

#### Inherited Methods

Inherited From Zend_Http_Client_Adapter_Socket

> Zend_Http_Client_Adapter_Socket::__construct()
> Zend_Http_Client_Adapter_Socket::close()
> Zend_Http_Client_Adapter_Socket::connect()
> Zend_Http_Client_Adapter_Socket::read()
> Zend_Http_Client_Adapter_Socket::setConfig()
> Zend_Http_Client_Adapter_Socket::write()
> Zend_Http_Client_Adapter_Socket::__destruct()

Documentation generated on Wed, 21 Feb 2007 11:57:55 -0800 by phpDocumentor 1.3.1