cURL / Mailing Lists / curl-library / Single Mail

curl-library

two different error codes,

From: Pavan Kumar Kakunoori <kpavan77_at_gmail.com>
Date: Wed, 29 Sep 2010 12:38:41 +0530

Hello Team, When the application is into error state, where if the file is
not found, we observed a vague behaviour. The cURL lib is returning two
distinct error codes depending on if application is using ftp or sftp. for
example if application is using ftp the lib is returning error code as
CURLE_FTP_COULDNT_RETR_FILE
and if application is using sftp the lib is returning error code as
CURLE_REMOTE_FILE_NOT_FOUND. Why is this descrimination? why cant lib
through one error code?

OS : Linux 64 bit RHEL5

Thanks,
Pavan Kakunoori

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-29