public function setProxy($host, $port, $type = CURLPROXY_HTTP)
    {
        if (!empty($host) && !empty($port)) {
            $this->proxyHost = stripslashes(trim($host));
            $this->proxyPort = intval($port);
            $this->proxyType = intval($type);
        }
    }
public function setProxy($host, $port, $type = CURLPROXY_HTTP)
    {
        if (!empty($host) && !empty($port)) {
            $this->proxyHost = stripslashes(trim($host));
            $this->proxyPort = intval($port);
            $this->proxyType = intval($type);
        }
    }
public function setProxy ( $ host , $ port , $ type = CURLPROXY_HTTP ) { if ( ! empty ( $ host ) && ! empty ( $ port ) ) { $ this -> proxyHost = stripslashes ( trim ( $ host ) ) ; $ this -> proxyPort = intval ( $ port ) ; $ this -> proxyType = intval ( $ type ) ; } }
Set a HTTP proxy to tunnel requests through.

@param string $host
@param int    $port
@param int    $type
Set a HTTP proxy to tunnel requests through .