From 96f3714f45607f45fe226dc908651bb36be87ee7 Mon Sep 17 00:00:00 2001 From: andreyserdjuk Date: Sun, 11 Dec 2016 23:33:49 +0200 Subject: [PATCH] proxy type Curl option added --- Curl.php | 4 ++++ 1 file changed, 4 insertions(+) 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']);