demonstrate how to use libcurl to visit restful web service