|
@@ 176-184 (lines=9) @@
|
| 173 |
|
*/ |
| 174 |
|
private function ___configHttpAuthentication() |
| 175 |
|
{ |
| 176 |
|
if (isset($this->_login) && is_string($this->_login) && strlen($this->_login) > 0 && |
| 177 |
|
isset($this->_password) && is_string($this->_password) && strlen($this->_password) > 0) { |
| 178 |
|
curl_setopt($this->curl, CURLOPT_USERPWD, $this->_login . ':' . $this->_password); |
| 179 |
|
if (property_exists($this, '_digest')) { |
| 180 |
|
curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE); |
| 181 |
|
} else { |
| 182 |
|
curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); |
| 183 |
|
} |
| 184 |
|
} |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
/** |
|
@@ 200-208 (lines=9) @@
|
| 197 |
|
if (isset($this->_proxy_port) && is_integer($this->_proxy_port)) { |
| 198 |
|
curl_setopt($this->curl, CURLOPT_PROXYPORT, $this->_proxy_port); |
| 199 |
|
} |
| 200 |
|
if (isset($this->_proxy_login) && is_string($this->_proxy_login) && strlen($this->_proxy_login) > 0 && |
| 201 |
|
isset($this->_proxy_password) && is_string($this->_proxy_password) && strlen($this->_proxy_password) > 0) { |
| 202 |
|
curl_setopt($this->curl, CURLOPT_PROXYUSERPWD, $this->_proxy_login . ':' . $this->_proxy_password); |
| 203 |
|
if (property_exists($this, '_digest')) { |
| 204 |
|
curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANYSAFE); |
| 205 |
|
} else { |
| 206 |
|
curl_setopt($this->curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY); |
| 207 |
|
} |
| 208 |
|
} |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
/** |