/** * Init an object Curl in function of proxy. * @return an object of type Curl * @access private */ private function initCurl() { $objCurl = new Curl(); if ($this->_proxy_host != null && $this->_proxy_port != null) { $objCurl->set_proxy($this->_proxy_host . ":" . $this->_proxy_port); } return $objCurl; }
/** * Init an object Curl in function of proxy. * @return an object of type Curl * @access private */ private function initCurl() { $objCurl = new Curl(); //$this->_debug if ($this->_proxy_host != null && $this->_proxy_port != null) { $objCurl->set_proxy($this->_proxy_host . ":" . $this->_proxy_port); } if ($this->_login != null && $this->_password != null) { $objCurl->set_credentials($this->_login, $this->_password); } return $objCurl; }