Hacker News new | past | comments | ask | show | jobs | submit login

FTP's directory listing command provides the output of 'ls'. Or 'dir', if on Windows. Or a bunch of other variations.

That's because it was made to be shown to a human using a commandline client, and wasn't intended to be parsed. As a result, a FTP client like Firefox needs to parse about a dozen possible versions, plus there's a standard for actual machine-readable listings that may still not be universally supported.

Anonymous access was typically announced in the welcome message, with something along the lines of "Login as user ftp, pass ftp for anonymous access". Again, made for humans reading that.

And besides that, it has annoying design quirks like that "download done" is just closing the socket.

My point is that FTP is a remarkably annoying protocol for something like Firefox to implement. It involves figuring out how to parse stuff that wasn't made to be parsed, guessing common anonymous account names and passwords, and dealing with ASCII/binary active/passive modes. The nature of a program like Firefox clashes with the protocol badly.

Proper GUI clients show all the messages the FTP server is producing because sometimes it's just a necessity. It's always possible that there will be something the client won't be able to deal with automatically.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: