cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP Download

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 8 Apr 2009 20:11:14 +0200 (CEST)

On Wed, 8 Apr 2009, Peter Soxberger wrote:

> I found an example of how to put a file to a server with HTTP PUT. But how
> can I start a HTTP download?

We have more examples: http://curl.haxx.se/lxr/source/docs/examples/

And even a tutorial: http://curl.haxx.se/libcurl/c/libcurl-tutorial.html

> How can I get the file size of the file that I'm downloading, so that I can
> calculate the progress?

You can't be sure to get that info, but for the cases you do
curl_easy_getinfo() can tell.

-- 
  / daniel.haxx.se
Received on 2009-04-08