Renamed curl_http to curl_tidy and renamed its functions