|
@@ 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 |
|
if (isset($this->_ssl_method) && is_int($this->_ssl_method)) { |
|
@@ 207-209 (lines=3) @@
|
| 204 |
|
*/ |
| 205 |
|
private function ___configProxy() |
| 206 |
|
{ |
| 207 |
|
if (isset($this->_proxy_host) && is_string($this->_proxy_host) && strlen($this->_proxy_host) > 0) { |
| 208 |
|
curl_setopt($this->curl, CURLOPT_PROXY, $this->_proxy_host); |
| 209 |
|
} |
| 210 |
|
if (isset($this->_proxy_port) && is_integer($this->_proxy_port)) { |
| 211 |
|
curl_setopt($this->curl, CURLOPT_PROXYPORT, $this->_proxy_port); |
| 212 |
|
} |