non-blocking httpclient using libcurl