PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Proxy

Source Location: /PEAR-1.10.8/PEAR/Proxy.php

Class Overview


PEAR_Proxy


Author(s):

  • Nico Boehr

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 15]
PEAR_Proxy

HTTP Proxy handling



[ Top ]


Class Variables

$config =  null

[line 17]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 40]

PEAR_Proxy __construct( [ $config = null])


Parameters:

   $config   — 

[ Top ]

getProxyAuth   [line 120]

null|string getProxyAuth( )

get the authorization information for the proxy, encoded to be passed in the Proxy-Authentication HTTP header.
  • Return: the encoded authentication information if a proxy and authentication is configured, null otherwise.

[ Top ]

getProxyUser   [line 128]

void getProxyUser( )


[ Top ]

isProxyConfigured   [line 140]

boolean isProxyConfigured( )

Check if we are configured to use a proxy.
  • Return: true if we are configured to use a proxy, false otherwise.
  • Access: public

[ Top ]

openSocket   [line 158]

void openSocket( string $host, string $port, [boolean $secure = false])

Open a socket to a remote server, possibly involving a HTTP proxy.

If an HTTP proxy has been configured (http_proxy PEAR_Config setting), the proxy will be used.

  • Access: public

Parameters:

string   $host   —  the host to connect to
string   $port   —  the port to connect to
boolean   $secure   —  if true, establish a secure connection using TLS.

[ Top ]


Documentation generated on Wed, 13 Mar 2019 14:45:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.