Sample to use libcurl