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;
    }