[英]Downloading File with libcurl in c++
I am trying to download a zip file from a website but running into a few issues. 我正在尝试从网站下载zip文件,但遇到了一些问题。
http://ampaste.net/m1632f19a http://ampaste.net/m1632f19a
I implemented libcurl, followed some examples on downloading a file, used a big zip file so I could watch the progress %. 我实现了libcurl,并遵循一些有关下载文件的示例,使用了一个大zip文件,因此我可以看到进度%。 It takes about 20 seconds to download, when it completes I go look and there is no file.
下载大约需要20秒钟,下载完成后,我去看看了,没有文件。
Anyone have any ideas? 有人有想法么?
Here is a related question 这是一个相关的问题
This post seems to use 这篇文章似乎用了
double* Bar;
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &Bar);
maybe it is a progress specific problem. 也许这是一个特定于进度的问题。 Have you tried without the progress stuff?
您是否尝试了没有进度的东西?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.