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