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 |
---|
array
null
Array 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 |
---|
resource
cURL resource
fsockopen_header(string $out)
since | 1.6 |
---|
string
HTTP header string
fsockopen_remote_host_path(string $path, string $url)
since | 1.6 |
---|
string
Path to send in HTTP request string ("GET ...")
string
Full URL we're requesting
fsockopen_remote_socket(string $remote_socket)
since | 1.6 |
---|
string
Socket connection string
get_auth_string() : string
since | 1.6 |
---|
string
register(\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