diff --git a/Curl.php b/Curl.php index e777fc8..1c3d660 100644 --- a/Curl.php +++ b/Curl.php @@ -90,6 +90,10 @@ public function __construct(array $options = array(), $followLocationMaxRedirect curl_setopt($this->ch, CURLOPT_PROXY, $proxyHost); + if (!empty($options['proxy_type'])) { + curl_setopt($this->ch, CURLOPT_PROXYTYPE, $options['proxy_type']); + } + if (false !== $proxyHost && isset($options['proxy_login'])) { curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, $options['proxy_login'].':'.$options['proxy_password']);