哪些FTP传输模式被广泛使用? [英] Which FTP transfer modes are widely used?

查看:172
本文介绍了哪些FTP传输模式被广泛使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读FTP RFC(RFC959),我注意到一些我从未见过的模式,而且似乎并没有被流行的FTP软件(例如vsftpd)所实现。特别是,对于STRU命令,通常只使用文件模式STRU F,对于MODE命令,通常只使用流模式MODE S。



所以问题是,当遵循开发可互操作的FTP客户端和服务器软件的最佳实践时:


  • 支持其他STRU选项(记录和页面)?这些看起来像是老式的东西。

  • 支持其他MODE选项(块和压缩)有用吗?我可以看到压缩点,但我特别想知道是否有客户端/服务器预计会有block。

  • 有没有对哪些现有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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆