add test code for libcurl httpclient