![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($config=null) | |
| _httpConnect ($fp, $host, $port) | |
| _parseProxyInfo () | |
| getProxyAuth () | |
| getProxyUser () | |
| isProxyConfigured () | |
| openSocket ($host, $port, $secure=false) | |
Data Fields | |
| $config = null | |
| $proxy_host | |
| $proxy_pass | |
| $proxy_port | |
| $proxy_schema | |
| $proxy_user | |
| __construct | ( | $config = null | ) |
Definition at line 40 of file Proxy.php.
References $config, and _parseProxyInfo().
| _httpConnect | ( | $fp, | |
| $host, | |||
| $port ) |
@access private
Definition at line 67 of file Proxy.php.
References $port, and getProxyAuth().
Referenced by openSocket().
| _parseProxyInfo | ( | ) |
@access private
Definition at line 49 of file Proxy.php.
Referenced by __construct().
| getProxyAuth | ( | ) |
get the authorization information for the proxy, encoded to be passed in the Proxy-Authentication HTTP header.
Definition at line 120 of file Proxy.php.
References isProxyConfigured().
Referenced by _httpConnect().
| getProxyUser | ( | ) |
Definition at line 128 of file Proxy.php.
References $proxy_user.
| isProxyConfigured | ( | ) |
Check if we are configured to use a proxy.
Definition at line 140 of file Proxy.php.
Referenced by getProxyAuth(), and openSocket().
| openSocket | ( | $host, | |
| $port, | |||
| $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.
| string | $host | the host to connect to |
| string | $port | the port to connect to |
| boolean | $secure | if true, establish a secure connection using TLS. @access public |
Definition at line 158 of file Proxy.php.
References $port, _httpConnect(), and isProxyConfigured().
| $config = null |
Definition at line 17 of file Proxy.php.
Referenced by __construct().
| $proxy_user |