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 15:48:07 +0100

Now that bug discovered by Fred Machado has been fixed, how to determine
that a tentative to download a file using FTP failed because the file
does not exist ?
7.19.1 and 7.19.2 behaved wrongly, but did know about error code
CURLE_REMOTE_FILE_NOT_FOUND (78)
This error code has now disappeared from ftp.c, being replaced by
CURLE_FTP_COULDNT_RETR_FILE (19). But the later can also be returned for
other kind of errors (55x).
 
How can we now be sure the error is "file not found" ? Any hint or curl
library patch welcome ! Thanks in advance.
 
Patrick
Received on 2009-02-17