curl-library
RE: Handling FTP servers that indicate backslash as CWD
Date: Wed, 11 Feb 2015 18:28:25 +0100
John Coffey wrote:
> PWD
> 257 "\" is current directory
> SYST
> 502 Command not implemented
> PORT 192,168,200,2,141,93
The PORT command has been sent, so the SYST command failure did not
abort your transfer request. The problem is not here.
> 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 ?
> QUIT
> 221 Goodbye
BTW: use "curl --verbose" or CURLOPT_VERBOSE to obtain a dialog dump:
this gives more details than a wireshark capture.
Patrick
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-02-11