public setProxy ( string $host, integer $port = 3128, string $user = null, string $pass = null, integer $type, integer $authType = 1 ) | ||
$host | string | |
$port | integer | |
$user | string | |
$pass | string | |
$type | integer | Allowed values 4 - SOCKS4, 5 - SOCKS5, 0 - HTTP |
$authType | integer | Allowed authtypes: 1 - Basic, Digest - 2, GSSNeg - 4, NTLM - 8, any - -1 |
public function setProxy($host, $port = 3128, $user = null, $pass = null, $type = 0, $authType = 1)
{
$this->proxyHost = $host;
$this->proxyPort = $port;
$this->proxyUser = $user;
$this->proxyPass = $pass;
$this->proxyType = $type;
$this->authType = $authType;
}