bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] FTP download using incorrect size for "Length" with -c


From: Jozua
Subject: Re: [Bug-wget] FTP download using incorrect size for "Length" with -c
Date: Wed, 14 Jul 2010 21:10:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5

On 14/07/2010 17:50, Daniel Stenberg wrote:
I consider the size from SIZE to be much more reliable than the size you
need to "guess" from the RETR response - based on the fact that SIZE has
a documented way to return the exact size while RETR has not. No matter
which happens to be the biggest...


After spending some time reading the RFC, I have to agree with this.

I would suggest using the response from RETR only if SIZE is not supported (function ftp_size() returns a value of 0).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]