Switch to cURL for a more reliable behavior with language