4 ms·
Is there any meaningful difference between a ftp server and a http server with directory listing enabled?
by gruez 6y ago
Is there any meaningful difference between a ftp server and a http server with directory listing enabled?
- oriolid 6y agoWith http you lose all the fun with active/passive FTP and tricks to get around firewalls. Though stateful firewalls already ruined it.
- deleted 6y ago[deleted]
- xtracto 6y agoIIRC at least initially the FTP had some special modes to transfer binary data, whereas HTTP was not as efficient. And of course, HTTP was meant to be "pull only" whereas FTP had upload capabilities too.
- caf 6y agoThe 'binary mode' of FTP just meant not to translate line endings or potentially character set, in opposition to 'text mode'. The advantage with HTTP wasn't efficiency, it was that resuming interrupted downloads was typically possible with FTP but not HTTP (because ranged GET took a long while to get support in both servers and clients).
- thequux 6y agoThe difference between binary and text is deeper than just line endings and character set; PDP-10's, for example, stored text 5 7-bit characters to a 36-bit word. In text mode, it would unpack that to ASCII, whereas binary mode would pack two words into 9 bytes. If you transferred in the wrong mode, you'd just get an amorphous blob of protoplasm and need to transfer again
- blabitty 6y agoActually I believe http was originally envisioned to be 2 way, a la webdav.
- lmm 6y agoFTP had better support for doing server-server transfer - you could start a receiver on machine 2 and then trigger a transfer from machine 1 to machine 2 without using your own bandwidth. I guess you can achieve the same thing by doing curl on machine 2 in a screen session or something, but it feels a lot less elegant.
- anarcat 6y agowow. I used ftp for years and even ran my own server for a while and never knew that was a thing. is that something that was actually used to mirror those sites? Debian mirrors certainly don't use this (anymore?) at least, for example..
- fletchowns 6y agoIt's called FXP: https://en.wikipedia.org/wiki/File_eXchange_Protocol https://en.wikipedia.org/wiki/File_eXchange_Protocol FlashFXP was a popular client that supported this: https://en.wikipedia.org/wiki/FlashFXP https://en.wikipedia.org/wiki/FlashFXP
- xorcist 6y agoIt's called fxp and you can still find information on it. In the top site scene it was widely used.
- eythian 6y agoI think scp can do stuff like this, I remember occasionally hitting it when wanting to move a file between two servers that can't talk to each other, expecting it would use my bandwidth/route for the transfer.
- np_tedious 6y agoIf it's unidirectional (user only downloads) and the files aren't crazy big, then given today's connection speeds and reliability I would say no not really.