关于 Content-Type:application/x-www-form-urlencoded
来源:互联网 发布:数据机房温度湿度标准 编辑:程序博客网 时间:2024/05/16 19:34
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)。
转载自:http://www.cnblogs.com/taoys/archive/2010/12/30/1922186.html
阅读全文
0 0
- 关于 Content-Type:application/x-www-form-urlencoded
- Content-Type: application/x-www-form-urlencoded
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/rel (2
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- 关于 Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/related
- [转]Content-Type: application/x-www-form-urlencoded
- Content-Type: application/x-www-form-urlencoded什么意思
- Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/rel
- 关于Content-Type中application/x-www-form-urlencoded 和 multipart/form-data的区别及用法
- Content-Type:application/x-www-form-urlencoded 和 multipart/form-data
- elasticsearch6.x {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported"
- 关于application/x-www-form-urlencoded编码
- java文件上传SpringMVC的配置
- 第37节 自动发邮件总结及实例说明
- failed to resolve com.android.support.constraint:constraint-layout解决办法
- leetcode 198. House Robber 入室抢劫 + DP动态规划求解
- Java公司笔试题
- 关于 Content-Type:application/x-www-form-urlencoded
- eclipse中使用svn提交,更新代码。
- 项目心得--我的尺寸测量项目
- struts2执行流程深入探索-源码分析
- AI进步的同时安全问题不容忽视
- property的修饰符
- Putty连接的Couldn't agree a client-to-server cipher错误
- 第二周 项目3
- Webpack 打包优化之体积篇