When curl interacted with TFTP server with option "-w" for some variants such as "size_download" ,
"size_upload", "speed_download","speed_upload" , curl can't work as expected.
You can type command as following:
$ curl -v tftp://%HOSTIP:%TFTPPORT/1.txt -O -w '%{size_download}\n"
Note: The size of file "1.txt" is 55 bytes, not zero.
Then you will find you get "0" as result of "size_download", not some non-zero
value as expected.
The same abnormal result is also can be found in the cases for the other three
variants("size_upload", "speed_download","speed_upload").
Logged In: YES
user_id=1110
Originator: NO
Ok, I fixed some of the problems for downloads and partly for uploads, now committed in CVS. Uploads will need a better fix to make the counter accurate as it currently counts 512bytes blocks only. That improvement is saved for later...
Logged In: YES
user_id=1110
Originator: NO
ah, I believe I fixed it better just now, including the upload size