English 中文(简体)
什么内容不能用双管齐下的安全放行?
原标题:What content cannot be FTP d safely in binary mode?
  • 时间:2011-01-02 19:31:18
  •  标签:
  • ftp

汇款主要提供两种转让方式:ASCII和BINaire。

ASCII模式通常针对的是文本内容,而BINaire模式一般是为了将内容作为依据转让,尽管在BINaire模式中转让基于文字的内容往往十分安全。

转来的CGI书写器必须正确执行,而以BINaire方式转来的CGI书写器,在执行时,往往产生500吉格里港。

是否有任何其他种类的内容需要采用ASCII模式进行转让? 什么内容会随着以双语方式转移而中断,而在以ASCII方式转移时不会中断?

最佳回答

原始模式将用来处理任何数据。

地理信息小组的文字问题是,这些文字往往在视窗上用CRLF线终端进行编辑,而服务器预计线终端只是低轨道。 ASCII模式解决这一问题。 但是,现代服务器不再关注这个问题,如果你有适当的工具,你也可以转换服务器方面的线端,而且如果你需要的话,你还可以告诉客户方面的编辑将低轨作为线结束(至少是“笔”++似乎这样做)。

我从未看到过charset的转换以ASCII模式进行,正好是因为ASCII is/em> 果园。

更新:ASCII模式在连接主机时可以用来转换EBCDIC和ASCII之间的数据。 在这种情况下,双向模式需要在转让后进行人工转换。

问题回答

我认为,建立了ASCII模式,通过调制连接来转让较少的数据(它利用7个轨道传输数据)。 因此,即使是在案文中,也可以使用替代方式,也可以使用可在ASCII模式中转移的任何其他内容,但使用带宽略微增加:

而且,随着UTF的引入,你实际上无法再与ASCII一道转交案文;实际上,现代偷盗客户只使用BINaire模式......。

EDIT: My answer is not correct about the 7bits transfer mode. This is what wikipedia says about ascii vs binary: "ASCII mode: used for text. Data is converted, if needed, from the sending host s character representation to "8-bit ASCII" before transmission, and (again, if necessary) to the receiving host s character representation. As a consequence, this mode is inappropriate for files that contain data other than plain text.

图像模式(通常称为“双向模式”):发送机将每份档案按批次发送,接收机在接收时储存下游。 推荐所有实施FTP的图像模式支持

注 最后一句话说,实际上建议所有转让采用双轨方式......

从下至下,所有转让均使用双语,你将oka。

Hope this helps, Moszi





相关问题
What is the simplest way to create my own FTP server?

What is the simplest way to create my own FTP server in C#? Some of the folders will be virtual folders. The authentication should be from a SQL Server database, which includes tables of the ASP.NET ...

FTP In/Out Folder Name Best Practices

What best practices (if any) do you adhere to regarding setting up outgoing and incoming folders for your FTP clients? We typically use "outgoing" and "incoming", but no matter how you phrase the ...

Using TCPClient with RAW FTP to retrieve file

I get the following message back when trying to retrieve a file using TCPClient and RAW FTP: 425 Failed to establish connection. I connect using : using (TcpClient client = new TcpClient("...

Retrieving a List of Files from an FTP server in C#

I m trying to retrieve a list of files from an FTP server, but I m getting some weird non-ASCII responses. Here is the code that I am using: public string[] getFileList(string mask) { if(!...

FTP error on Quit command

I m using a ftp library that causes an error sending the quit command. It seems that the character before QUIT is not recognized. I took a look at the code but didn t find anything. 500 ?QUIT : ...

Passive FTP Timeout while using WinINet

I m trying to ftp a file using passive ftp but I get a timeout (12002) when the put command is called. I m able to use passive ftp with other ftp sites but not this new one. I ve tried this using ...