|
@@ 89-91 (lines=3) @@
|
| 86 |
|
$this->___configHeader($action, $version); |
| 87 |
|
$this->___configCompression(); |
| 88 |
|
$this->___configTimeout(); |
| 89 |
|
if (isset($this->_user_agent) && is_string($this->_user_agent) && strlen($this->_user_agent) > 0) { |
| 90 |
|
curl_setopt($this->curl, CURLOPT_USERAGENT, $this->_user_agent); |
| 91 |
|
} |
| 92 |
|
$this->___configHttpAuthentication(); |
| 93 |
|
$this->___configProxy(); |
| 94 |
|
|
|
@@ 194-196 (lines=3) @@
|
| 191 |
|
*/ |
| 192 |
|
private function ___configProxy() |
| 193 |
|
{ |
| 194 |
|
if (isset($this->_proxy_host) && is_string($this->_proxy_host) && strlen($this->_proxy_host) > 0) { |
| 195 |
|
curl_setopt($this->curl, CURLOPT_PROXY, $this->_proxy_host); |
| 196 |
|
} |
| 197 |
|
if (isset($this->_proxy_port) && is_integer($this->_proxy_port)) { |
| 198 |
|
curl_setopt($this->curl, CURLOPT_PROXYPORT, $this->_proxy_port); |
| 199 |
|
} |