Fixes SSL errors, there was a constant warning, curl_error(): 3 is not a valid cURL handle resource. This solves it.