cURL / Mailing Lists / curl-library / Single Mail


Re: Progress function: dltotal always 0 ?

From: Michal Marek <>
Date: Mon, 07 Jan 2008 16:10:54 +0100

Stephen Collyer wrote:
> I'm using a progress function as set by CURLOPT_PROGRESSFUNCTION.
> Whenever it's called dltotal is 0, and dlnow is set to the current
> number of downloaded bytes.

Then the server probably doesn't send the Content-Length header. dltotal
is the expected total download size.

Received on 2008-01-07