HTTP Proxy connection interface
Provides a handler for connection via an HTTP proxy
| package | Requests |
|---|---|
| subpackage | Proxy |
| since | 1.6 |
__construct(array|null $args = null)
| since | 1.6 |
|---|
arraynullArray of user and password. Must have exactly two elements
\Requests_Exception |
On incorrect number of arguments (`authbasicbadargs`) |
|---|
curl_before_send(resource $handle)
| since | 1.6 |
|---|
resourcecURL resource
fsockopen_header(string $out)
| since | 1.6 |
|---|
stringHTTP header string
fsockopen_remote_host_path(string $path, string $url)
| since | 1.6 |
|---|
stringPath to send in HTTP request string ("GET ...")
stringFull URL we're requesting
fsockopen_remote_socket(string $remote_socket)
| since | 1.6 |
|---|
stringSocket connection string
get_auth_string() : string
| since | 1.6 |
|---|
stringregister(\Requests_Hooks $hooks)
$pass : string
$proxy : string
Notation: "host:port" (eg 127.0.0.1:8080 or someproxy.com:3128)
$use_authentication : boolean
$user : string