cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: FTP Download Problem - code 78

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 17 Feb 2009 16:35:01 +0100

 
Daniel Stenberg wrote:

> I think the primary problem is that the FTP protocol doesn't define or
use a clear "file not found" response code!

Agreed! But at least, return code 550 for the RETR command does not
suffer some comment such as the one for SIZE in RFC3659. A 550 error
code after RETR should be 99% of times due to "file not found" or "no
permission". Although not always accurate (according to its name),
returning CURLE_REMOTE_FILE_NOT_FOUND in this case would help
discriminate it among other 55x error codes.
Received on 2009-02-17