Skip to main content

5.3. 与 Web 应用程序的互操作性

5.3. Interoperability with Web Applications

🇬🇧 英文原文

Many web applications use the "application/x-www-form-urlencoded" method for returning data from forms. This format is quite compact, for example:

name=Xavier+Xantico&verdict=Yes&colour=Blue&happy=sad&Utf%F6r=Send

However, there is no opportunity to label the enclosed data with a content type, apply a charset, or use other encoding mechanisms.

Many form-interpreting programs (primarily web browsers) now implement and generate multipart/form-data, but a receiving application might also need to support the "application/x-www-form-urlencoded" format.

🇨🇳 中文翻译

许多 Web 应用程序使用 "application/x-www-form-urlencoded" 方法从表单返回数据。这种格式相当紧凑,例如:

name=Xavier+Xantico&verdict=Yes&colour=Blue&happy=sad&Utf%F6r=Send

然而,没有机会用内容类型标记封闭的数据、应用字符集或使用其他编码机制。

许多表单解释程序(主要是 Web 浏览器)现在实现并生成 multipart/form-data,但接收应用程序可能还需要支持 "application/x-www-form-urlencoded" 格式。