[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Http/Client/Adapter/ -> Proxy.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 284 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Http_Client_Adapter_Proxy:: (5 methods):
  connect()
  write()
  connectHandshake()
  close()
  __destruct()


Class: Zend_Http_Client_Adapter_Proxy  - X-Ref

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.

connect($host, $port = 80, $secure = false)   X-Ref
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)

param: string  $host
param: int     $port
param: boolean $secure

write($method, $uri, $http_ver = '1.1', $headers = array()   X-Ref
Send request to the proxy server

param: string        $method
param: Zend_Uri_Http $uri
param: string        $http_ver
param: array         $headers
param: string        $body
return: string Request as string

connectHandshake($host, $port = 443, $http_ver = '1.1', array &$headers = array()   X-Ref
Preform handshaking with HTTPS proxy using CONNECT method

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

close()   X-Ref
Close the connection to the server


__destruct()   X-Ref
Destructor: make sure the socket is disconnected




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1