port curl_request to libuv 0.10.x