private function getNewCurlHandle($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); if ($this->acceptInvalidSSLCertificate) { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } curl_setopt($ch, CURLOPT_USERAGENT, Http::getUserAgent()); Http::configCurlCertificate($ch); return $ch; }