cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress function: dltotal always 0 ?

From: Nathan E. Moore <nate_at_redtetrahedron.org>
Date: Tue, 08 Jan 2008 00:18:39 -0500

>> Then the server probably doesn't send the Content-Length header. dltotal
>> is the expected total download size.
>
> Right. Thanks for that. By the way, is that documented somewhere,
> or did you discover it some other way ?

You also get a zero for the total if a http response is chunked.

These are all situations where the total size of the download is
unknowable, so regardless of what the docs say if curl cannot give you a
total if the is no way to know what the total is, or will be.

Nathan E. Moore
Received on 2008-01-08