cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Handling FTP servers that indicate backslash as CWD

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Feb 2015 18:40:45 +0100 (CET)

On Wed, 11 Feb 2015, Patrick Monnerat wrote:

>> 250 PORT command successful
>
> The problem is here: the response to the PORT command is expected to be
> "200" (Command Okay), not "250" (Requested file action okay, completed).
> This is why no transfer occurs and the dialog aborts. This is a deviant
> response (see RFC 959, top of page 51). May be we can check this code for
> tolerance too. @Daniel ?

Yes I believe so. We have no particular reason to be very picky about that so
ftpcode/100 == 2 is probably a better check there...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-02-11