API Documentation

Http/Client/Adapter/Proxy.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Http
subpackage
Client_Adapter
version
$Id: Proxy.php 22445 2010-06-16 09:09:12Z bate $
Classes
Zend_Http_Client_Adapter_Proxy

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Http_Client_Adapter_Proxy

Extends from
Zend_Http_Client_Adapter_Socket
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Http
subpackage
Client_Adapter
Properties
$config
$negotiated
Methods
connect
write
connectHandshake
close
__destruct

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.

Properties

$config

array $config = 'array'

Parameters array

Details

$config
array
visibility
protected
default
array
final
false
static
false

$negotiated

boolean $negotiated = 'false'

Whether HTTPS CONNECT was already negotiated with the proxy or not

Details

$negotiated
boolean
visibility
protected
default
false
final
false
static
false

Methods

__destruct

__destruct( ) :

Destructor: make sure the socket is disconnected

Details
visibility
public
final
false
static
false

close

close( ) :

Close the connection to the server

Details
visibility
public
final
false
static
false

connect

connect( string $host, int $port = 80, boolean $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)

Arguments
$host
string
$port
int
$secure
boolean
Details
visibility
public
final
false
static
false

connectHandshake

connectHandshake( string $host, integer $port = 443, string $http_ver = 1.1, array $headers = array ) :

Preform handshaking with HTTPS proxy using CONNECT method

Arguments
$host
string
$port
integer
$http_ver
string
$headers
array
Details
visibility
protected
final
false
static
false

write

write( string $method, Zend_Uri_Http $uri, string $http_ver = 1.1, array $headers = array, string $body ) : string

Send request to the proxy server

Arguments
$method
string
$uri
Zend_Uri_Http
$http_ver
string
$headers
array
$body
string
Output
string
Request as string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.