[SoapClient] Added proxy authentication option in SoapClientBuilder

Fixed #47
This commit is contained in:
Francis Besset
2014-08-18 11:45:53 +02:00
parent 70db0c42fd
commit 1a7f60b679
3 changed files with 28 additions and 1 deletions

View File

@ -92,6 +92,10 @@ class Curl
if (false !== $proxyHost && isset($options['proxy_login'])) {
curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, $options['proxy_login'].':'.$options['proxy_password']);
if (isset($options['proxy_auth'])) {
curl_setopt($this->ch, CURLOPT_PROXYAUTH, $options['proxy_auth']);
}
}
}