curl-library
Progress callback function arguments and download size
From: Dmitry Antipov <dmantipov_at_yandex.ru>
Date: Wed, 04 Apr 2007 20:19:45 +0400
Date: Wed, 04 Apr 2007 20:19:45 +0400
Hello all,
1) why not passing -1 as 2nd arg of progress callback if the download size
can't be obtained ? This may be useful to distinguish between the cases
when the size is _really_ unknown and the cases when the size is 0, i.e.
when downloading an empty file.
2) Will CURLINFO_CONTENT_LENGTH_DOWNLOAD be also 0 if we didn't receive
Content-Length: from the (brain-damaged) server at all ?
Dmitry
Received on 2007-04-04