Skip to main content

4.7. Content-Transfer-Encoding 已弃用

4.7. Content-Transfer-Encoding Deprecated

🇬🇧 英文原文

Historically, HTML form data has been sent using Content-Transfer-Encoding in some implementations. However, in contexts where binary data can be sent (as is the case for HTTP), Content-Transfer-Encoding is unnecessary and SHOULD NOT be used.

Because of legacy implementations, recipients SHOULD be prepared to process multipart/form-data that contains parts with Content-Transfer-Encoding, even though such use is deprecated.

🇨🇳 中文翻译

历史上,在某些实现中使用 Content-Transfer-Encoding 发送 HTML 表单数据。然而,在可以发送二进制数据的上下文中(如 HTTP 的情况),Content-Transfer-Encoding 是不必要的,不应该 (SHOULD NOT) 使用。

由于遗留实现,接收方应该 (SHOULD) 准备好处理包含带有 Content-Transfer-Encoding 的部分的 multipart/form-data,即使这种使用已被弃用。