[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Luasocket FTP problem
- From: ketmar <ketmar@...>
- Date: Fri, 7 Nov 2008 17:56:10 +0200
On Fri, 07 Nov 2008 15:43:26 +0000
Tim Channon <tc@gpsl.net> wrote:
> A web browse finds this and is correct.
> http://stackoverflow.com/questions/210371/luasocket-ftp-always-times-out
> Editing line 69 of Luasockets ftp.lua from "pasv" to "PASV"
> Recreate the static linked Lua executable, then
> print(socket.ftp.get("ftp://ftp.us.dell.com/app/dpart.txt"))
> Magic, text is printed to console.
> FTP is a troublesome protocol and the question arises of whether there
> are other textual case problems. Maybe we need a test suite.
nope, that's not LuaSocket fault. someone else (author of affected
ftp-server) needs a test suite and, probably, some courses on carefull
specs reading. RFC 959 says this:
===
5.3. COMMANDS
[some text ommited]
field. The command codes are four or fewer alphabetic characters.
Upper and lower case alphabetic characters are to be treated
identically. Thus, any of the following may represent the
retrieve command:
RETR Retr retr ReTr rETr
===
so LuaSocket is perfectly right here and ftp-server is perfectly wrong.
send a bug-report to server vendors, please.