example of using libcurl