diff -w -u C:\sources\curl-7.16.2\lib/transfer.c ./transfer.c
--- C:\sources\curl-7.16.2\lib/transfer.c	2007-06-21 14:53:58.324866600 -0400
+++ ./transfer.c	2007-06-28 21:15:45.870207300 -0400
@@ -849,6 +849,7 @@
               if(contentlength >= 0) {
                 k->size = contentlength;
                 k->maxdownload = k->size;
+                Curl_pgrsSetDownloadSize(data, k->size);
               }
               else {
                 /* Negative Content-Length is really odd, and we know it
 
