cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Got a 230 ftp-server response when 220 was expected

From: Anders Havn <anders.havn_at_gmail.com>
Date: Mon, 18 Feb 2013 18:13:25 +0100

>> I'm trying to connect via FTP to my USB storage device. It fails when
>> trying to connect and the error message (log) from curl is:
>>
>>> 230 User logged in.
>>> Got a 230 ftp-server response when 220 was expected
>>> Error
>
> So your server sends a 230 immediately as a first response? That's a very
> interesting way to behave.
>
> RFC959 clearly defines 230 as a response to three commamds and none of them
> has been issued at that point... Is this server simply sending a 230 instead
> of a 220?
>
> --
>
> / daniel.haxx.se
>

Yes, it looks like the server doesn't send an 220 response. See log
from filezilla below (anonymous login):
Status: Connecting to 75.77.19.143:21...
Status: Connection established, waiting for welcome message...
Response: 230 User logged in.
Command: USER anonymous
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 UTF8 ON
Status: Connected
Trace: Measured latency of 134 ms
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/shares" is the current working directory.
Status: Directory listing successful
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-18