fix libcurl http requests.