摘要: curl是一个非常好的网络传输库,使用也很简单。常用的使用方式是用它来下载资源文件,以下提供一个下载方法 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int download(string url, string local_file, int down_speed) 8 { 9 CURL *image;10 CURLcode imgresult;11 FILE *fp;12 //url_download.c_str();13 14 image = curl_easy_init()... 阅读全文
posted @ 2013-11-01 15:29 haroel 阅读(4206) 评论(0) 推荐(0) 编辑