Class php_http_proxy

Description

An HTTP Proxy class

Located in /includes/domit/php_http_proxy.php (line 25)

php_http_request
   |
   --php_http_client_generic
      |
      --php_http_proxy
Method Summary
php_http_proxy php_http_proxy (string $host, [string $path = '/'], [int $port = 80], int $timeout)
void get_custom (string $filename)
void setHeaders ()
void setProxyAuthorization (string $user, string $password)
void setTimeout (int $timeout)
Variables
Methods
Constructor php_http_proxy (line 34)

HTTP Proxy constructor

php_http_proxy php_http_proxy (string $host, [string $path = '/'], [int $port = 80], int $timeout)
  • string $host: The client connection host name, with or without its protocol prefix
  • string $path: The client connection path, not including the host name
  • int $port: The port to establish the client connection on
  • int $timeout: The timeout value for the client connection
get_custom (line 69)

Handler for customizing the HTTP GET call

void get_custom (string $filename)
  • string $filename: The target url

Redefinition of:
php_http_client_generic::get_custom()
Handler for customizing the HTTP GET call
setHeaders (line 50)

Sets the proxy headers

void setHeaders ()

Redefinition of:
php_http_request::setHeaders()
Default method for setting headers; meant to be overridden in subclasses
setProxyAuthorization (line 60)

Specifies a user name and password for basic proxy authentication

void setProxyAuthorization (string $user, string $password)
  • string $user: The user name for proxy authentication
  • string $password: The password for proxy authentication
setTimeout (line 43)

Sets the proxy timeout to the specified value

void setTimeout (int $timeout)
  • int $timeout: The timeout value for the client connection

Inherited Methods

Inherited From php_http_client_generic

php_http_client_generic::php_http_client_generic()
php_http_client_generic::connect()
php_http_client_generic::decodeChunkedData()
php_http_client_generic::defaultHTTPEventHandler()
php_http_client_generic::disconnect()
php_http_client_generic::fireEvent()
php_http_client_generic::generateResponseHeadersAsObject()
php_http_client_generic::get()
php_http_client_generic::getHTTPEvent()
php_http_client_generic::get_custom()
php_http_client_generic::head()
php_http_client_generic::head_custom()
php_http_client_generic::isConnected()
php_http_client_generic::normalizeResponseIfChunked()
php_http_client_generic::post()
php_http_client_generic::post_custom()
php_http_client_generic::printHTML()
php_http_client_generic::send()
php_http_client_generic::setHTTPEvent()

Inherited From php_http_request

php_http_request::getHeaders()
php_http_request::setAuthorization()
php_http_request::setHeader()
php_http_request::setHeaders()
php_http_request::setProtocolVersion()
php_http_request::setRequestMethod()
php_http_request::setRequestPath()

Documentation generated on Fri, 4 Mar 2005 13:57:08 +1000 by phpDocumentor 1.3.0RC3