cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1715394 ] In TFTP, curl outputs incorrect results for the option "-w"

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 18 May 2007 03:34:20 -0700

Bugs item #1715394, was opened at 2007-05-09 04:46
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1715394&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: TFTP
Group: wrong behaviour
>Status: Closed
>Resolution: Fixed
Priority: 4
Private: No
Submitted By: Feng Tu (ayanamixp)
Assigned to: Daniel Stenberg (bagder)
Summary: In TFTP, curl outputs incorrect results for the option "-w"

Initial Comment:
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").

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-05-18 12:34

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

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1715394&group_id=976
Received on 2007-05-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET