removed curl_close to ensure connections are reused if possible