protected function createCurlHandle()
    {
        $options = $this->getDefaultCurlOptions();

        if (isset($this->authentication)) {
            $options[CURLOPT_USERPWD] = $this->authentication;
        }

        $curl = curl_init();
        curl_setopt_array($curl, $options);

        return $curl;
    }
protected function createCurlHandle()
    {
        $options = $this->getDefaultCurlOptions();

        if (isset($this->authentication)) {
            $options[CURLOPT_USERPWD] = $this->authentication;
        }

        $curl = curl_init();
        curl_setopt_array($curl, $options);

        return $curl;
    }
protected function createCurlHandle ( ) { $ options = $ this -> getDefaultCurlOptions ( ) ; if ( isset ( $ this -> authentication ) ) { $ options [ CURLOPT_USERPWD ] = $ this -> authentication ; } $ curl = curl_init ( ) ; curl_setopt_array ( $ curl , $ options ) ; return $ curl ; }
Creates and initializes the underlying cURL handle.

@return resource
Creates and initializes the underlying cURL handle .