I have an issue while trying to connect to ftp on WD My Cloud (it uses some modification of pure-ftp server)
this code returns:
local ftp = require("socket.ftp")
f, e = ftp.get("ftp://myserver/books/test.txt;type=i")
print(f)
print(e)
but curl or wget get the file without fail
curl "ftp://myserver/books/test.txt"
Hello World!
I starts to work when I add an extra '/' after the host
local ftp = require("socket.ftp")
f, e = ftp.get("ftp://myserver//books/test.txt;type=i")
print(f)
print(e)
returns
I believe this can be fixed in luasocket since curl and wget work somehow