|
@@ 193-197 (lines=5) @@
|
| 190 |
|
return; |
| 191 |
|
} |
| 192 |
|
curl_setopt($this->curl, CURLOPT_USERPWD, $this->_login . ':' . $this->_password); |
| 193 |
|
if (property_exists($this, '_digest')) { |
| 194 |
|
curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE); |
| 195 |
|
} else { |
| 196 |
|
curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); |
| 197 |
|
} |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
/** |
|
@@ 215-219 (lines=5) @@
|
| 212 |
|
if (!$this->___isEmptyExtProperty('_proxy_login') && !$this->___isEmptyExtProperty('_proxy_password')) { |
| 213 |
|
curl_setopt($this->curl, CURLOPT_PROXYUSERPWD, $this->_proxy_login . ':' . $this->_proxy_password); |
| 214 |
|
} |
| 215 |
|
if (property_exists($this, '_digest')) { |
| 216 |
|
curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANYSAFE); |
| 217 |
|
} else { |
| 218 |
|
curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY); |
| 219 |
|
} |
| 220 |
|
if ($this->proxy_type === 'socks5') { |
| 221 |
|
curl_setopt($this->curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); |
| 222 |
|
} elseif ($this->proxy_type === 'socks4') { |