@@ 189-196 (lines=8) @@ | ||
186 | */ |
|
187 | private function ___configHttpAuthentication() |
|
188 | { |
|
189 | if ($this->___isNotEmptyExtProperty('_login') && $this->___isNotEmptyExtProperty('_password')) { |
|
190 | curl_setopt($this->curl, CURLOPT_USERPWD, $this->_login . ':' . $this->_password); |
|
191 | if (property_exists($this, '_digest')) { |
|
192 | curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE); |
|
193 | } else { |
|
194 | curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); |
|
195 | } |
|
196 | } |
|
197 | } |
|
198 | ||
199 | /** |
|
@@ 212-219 (lines=8) @@ | ||
209 | if (isset($this->_proxy_port) && is_int($this->_proxy_port)) { |
|
210 | curl_setopt($this->curl, CURLOPT_PROXYPORT, $this->_proxy_port); |
|
211 | } |
|
212 | if ($this->___isNotEmptyExtProperty('_proxy_login') && $this->___isNotEmptyExtProperty('_proxy_password')) { |
|
213 | curl_setopt($this->curl, CURLOPT_PROXYUSERPWD, $this->_proxy_login . ':' . $this->_proxy_password); |
|
214 | if (property_exists($this, '_digest')) { |
|
215 | curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANYSAFE); |
|
216 | } else { |
|
217 | curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY); |
|
218 | } |
|
219 | } |
|
220 | } |
|
221 | ||
222 | /** |