cURL / Mailing Lists / curl-library / Single Mail


Re: Progress function: dltotal always 0 ?

From: Immanuel Gregoire <>
Date: Mon, 7 Jan 2008 11:13:36 -0800 (PST)

on Mon 7 december, Steve 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.

yeah,if you are doing an ascii transfer, then it is the wanted behavior.
This is because there could be a newline conversion in effect (Resulting
in difference between 'received' bytecount and actual filesize in the
Received on 2008-01-07