哪些FTP传输模式被广泛使用? [英] Which FTP transfer modes are widely used?
问题描述
所以问题是,当遵循开发可互操作的FTP客户端和服务器软件的最佳实践时:
(在MODE上,我可以看到为什么压缩是有用的,我更关心是否有客户端/服务器会期望块模式在那里)。
我维护一个自定义的FTP服务器并定期引用 http://cr.yp.to/ftp.html 了解这些问题。具体而言,我遵循 http://cr.yp.to的TYPE / MODE / STRU建议
没有我见过的客户端连接发送了STRU请求,除了STRU F 。同样,我只见过模式S。
Reading the FTP RFC (RFC959), I notice some modes that I've never seen used, and indeed don't seem to be implemented by popular FTP software (vsftpd for example). In particular, for the STRU command, only file mode "STRU F" is commonly used, and for the MODE command, only stream mode "MODE S" is commonly used.
So the question is, when following best practice for developing interoperable FTP client and server software:
- Is it useful to support the other STRU options (record and page)? These seem like something very old fashioned.
- Is it useful to support the other MODE options (block and compressed)? I can see the point in compressed, but I'm particularly wondering whether any clients/servers will expect block to be there.
- Are there any surveys of which existing FTP implementations support which options?
(On the MODE one, I can see why compressed is useful, I'm more wondering about whether any clients/servers will expect block mode to be there).
I maintain a custom FTP server and regularly refer to http://cr.yp.to/ftp.html for these sort of questions. Specificly, I followed the suggestions for TYPE/MODE/STRU at http://cr.yp.to/ftp/type.html and so far have had no issues.
No client I've seen connect has sent an STRU request besides "STRU F". Similarly, I've only ever seen "MODE S".
这篇关于哪些FTP传输模式被广泛使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!