Menu

#648 In TFTP, curl outputs incorrect results for the option "-w"

closed-fixed
TFTP (14)
4
2013-06-21
2007-05-09
Feng Tu
No

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").

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2007-05-17
    • labels: --> TFTP
    • milestone: --> wrong_behaviour
    • priority: 5 --> 4
    • assigned_to: nobody --> bagder
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-05-18

    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...

     
  • Daniel Stenberg

    Daniel Stenberg - 2007-05-18
    • status: open --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-05-18

    Logged In: YES
    user_id=1110
    Originator: NO

    ah, I believe I fixed it better just now, including the upload size