added curlopt for insecure ssl cert