http-关于application/x-www-form-urlencoded等字符编码的解释说明
来源:互联网 发布:拔火罐可以减肥吗 知乎 编辑:程序博客网 时间:2024/06/16 06:06
在Form元素的语法中,EncType表明提交数据的格式 用 Enctype 属性指定将数据回发到服务器时浏览器使用的编码类型。 下边是说明: application/x-www-form-urlencoded: 窗体数据被编码为名称/值对。这是标准的编码格式。 multipart/form-data: 窗体数据被编码为一条消息,页上的每个控件对应消息中的一个部分。 text/plain: 窗体数据以纯文本形式进行编码,其中不含任何控件或格式字符。
补充
form的enctype属性为编码方式,常用有两种:application/x-www-form-urlencoded和multipart/form-data,默认为application/x-www-form-urlencoded。 当action为get时候,浏览器用x-www-form-urlencoded的编码方式把form数据转换成一个字串(name1=value1&name2=value2...),然后把这个字串append到url后面,用?分割,加载这个新的url。 当action为post时候,浏览器把form数据封装到http body中,然后发送到server。 如果没有type=file的控件,用默认的application/x-www-form-urlencoded就可以了。 但是如果有type=file的话,就要用到multipart/form-data了。浏览器会把整个表单以控件为单位分割,并为每个部分加上Content-Disposition(form-data或者file),Content-Type(默认为text/plain),name(控件name)等信息,并加上分割符(boundary)。
content-type: 编码属性
0 0
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- log4j.properties配置
- struts2文件下载 注解版
- Spring AOP (上)
- android 使用代码,自动设置代理IP
- Universal-Image-Loader源码阅读(14)-memory/impl/WeakMemoryCache
- http-关于application/x-www-form-urlencoded等字符编码的解释说明
- 日期处理类SimpleDateFormat
- 安装错误 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 解决办法
- Android service获取调用者的真实package name
- 外网访问打洞
- 大型网站架构知识结构
- IOS 开发的各种总结,自己备用,更新。
- 那些由NSTimer 和performSelector 可能引起的内存泄漏
- C#实现把用户第一次选择的路径保存到配置文件app.config中