add libcurl code for cpp