3 ms·
With FTP you login and are then in your home directory. Then you upload. With HTTP authentication is a home directory required? Can you do `pwd` to query yo
by ape4 8y ago
With FTP you login and are then in your home directory. Then you upload. With HTTP authentication is a home directory required? Can you do `pwd` to query your home folder. Some FTP clients allow standboxing where you are in /home/user folder but `pwd` says `/`.
- tptacek 8y agoThere are like at least 3 different mainstream ways to "log in" to a web server, and all of them are more straightforward than FTP's insane mainframe-era control-channel/data-channel design. The "sandboxing" you're referring to is a serverside chroot, for what it's worth. And, of course, web servers have been doing that since NCSA httpd.
- drb91 8y agoIn this case, choice may not be a benefit for coordination. If there’s one way to do it, there’s much less to communicate and debug.
- zlynx 8y agoEh. When you realize that FTP supported opening two control channels to different systems and having them do a file transfer without involving the client, it makes more sense. It was also possible for the client and server to fork off data handling processes for the data channel and continue to use the control connection without needing async poll/select loops. Anyway, it wasn't insane. At the time anyway.
- tptacek 8y agoIt's the "without needing async poll/select loops" thing that makes it so crazy. It's a protocol that encodes the multiprocessing limitations of its hosts.