cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: two different error codes,

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 29 Sep 2010 15:14:18 -0700

On Wed, Sep 29, 2010 at 01:34:59PM +0530, Pavan Kumar Kakunoori wrote:
> Thanks for the response.Lets suppose we removed a file intensionally and tried
> to test the same with ftp and sftp respectively. Ideally the same error code
> should be reported. But here it is not.

I just tried it on this public ftp server and I got
CURLE_REMOTE_FILE_NOT_FOUND (error #78). What does your log show?

$ curl -s -v ftp://ftp.gene6.com/nonexistent-file
* About to connect() to ftp.gene6.com port 21 (#0)
* Trying 87.98.200.117... connected
* Connected to ftp.gene6.com (87.98.200.117) port 21 (#0)
* FTP 0x807ebe4 state change from STOP to WAIT220
< 220 Gene6 FTP Server v3.9.0 (Build 2) ready...
> USER anonymous
* FTP 0x807ebe4 state change from WAIT220 to USER
< 331 Password required for anonymous.
> PASS ftp_at_example.com
* FTP 0x807ebe4 state change from USER to PASS
< 230-Hello anonymous from XXX!
<
< Current statistics :
< - Version : Gene6 FTP Server v3.9.0 (Build 2)
< - OS : Windows NT 5.2 Service Pack 1 with 3.998 GBytes of ram.
<
< - Domain : ftp.us.gene6.com
< - Uptime : 318d08:57:56
< - SSL : enabled
< - Connected user(s) : 1
<
< - Files served : 197494
< - Served : 72.411 GBytes
< - Received : 22.34 GBytes
<
< - Current speed : 8 Bytes/s
< - Average speed : 244 Bytes/s
<
< **************************************************************************
< In case of problem, please contact : support_at_g6ftpserver.com
<
< (You will be disconnected after 180 s idling).
< **************************************************************************
< 230 User anonymous logged in.
> PWD
* FTP 0x807ebe4 state change from PASS to PWD
< 257 "/" is current directory.
* Entry path is '/'
* FTP 0x807ebe4 state change from PWD to STOP
* protocol connect phase DONE
* DO phase starts
> EPSV
* FTP 0x807ebe4 state change from STOP to PASV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||50072|)
* Trying 87.98.200.117... connected
* Connecting to 87.98.200.117 (87.98.200.117) port 50072
* FTP 0x807ebe4 state change from PASV to STOP
* DO phase is complete
* DO-MORE phase starts
> TYPE I
* FTP 0x807ebe4 state change from STOP to RETR_TYPE
< 200 Type set to I.
> SIZE nonexistent-file
* FTP 0x807ebe4 state change from RETR_TYPE to RETR_SIZE
< 550 No such file.
> RETR nonexistent-file
* FTP 0x807ebe4 state change from RETR_SIZE to RETR
< 550 "nonexistent-file": no such file.
* RETR response: 550
* DO-MORE phase ends with 78
* Remembering we are in dir ""
* Connection #0 to host ftp.gene6.com left intact
> QUIT
* FTP 0x807ebe4 state change from RETR to QUIT
< 221 Goodbye.
* FTP 0x807ebe4 state change from QUIT to STOP
* Closing connection #0
e.
> RETR nonexistent-file
* FTP 0x807ebe4 state change from RETR_SIZE to RETR

  0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0< 550 "nonexistent-file": no such file.
* RETR response: 550
* DO-MORE phase ends with 78
* Remembering we are in dir ""

  0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0* Connection #0 to host ftp.gene6.com left intact

curl: (78) RETR response: 550
> QUIT
* FTP 0x807ebe4 state change from RETR to QUIT
< 221 Goodbye.
* FTP 0x807ebe4 state change from QUIT to STOP
* Closing connection #0

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