cURL / Mailing Lists / curl-library / Single Mail

curl-library

Write callback compared to progress callback

From: Andreas Volz <lists_at_brachttal.net>
Date: Tue, 8 Jan 2008 23:36:51 +0100

Hi,

I use a write and a progress callback in my application. I'm wondering
that the progress callback runs several time even that it has yet 100%
downloaded. The write callback isn't called then.

Downloaded 0 bytes of total 8008 bytes (0.000000%)
write: 1440

Downloaded 1440 bytes of total 8008 bytes (17.982018%)
write: 1440

Downloaded 2880 bytes of total 8008 bytes (35.964036%)
write: 1440

Downloaded 4320 bytes of total 8008 bytes (53.946054%)
write: 1440

Downloaded 5760 bytes of total 8008 bytes (71.928072%)
write: 1440

Downloaded 7200 bytes of total 8008 bytes (89.910090%)
write: 808

Downloaded 8008 bytes of total 8008 bytes (100.000000%)

Downloaded 8008 bytes of total 8008 bytes (100.000000%)

Downloaded 8008 bytes of total 8008 bytes (100.000000%)

Any ideas why this happens?

regards
Andreas
Received on 2008-01-08