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