Actually fixes the curl request.