Http post方式传递参数的格式
来源:互联网 发布:2g和4g网络的区别 编辑:程序博客网 时间:2024/05/01 23:44
Head:
Content-Type:multipart/form-data;boundary=(后接一串每个Request body的分割边界,字符串一般由0~9,a~b,A~B,-,_,组成)
Accept-Encoding:(后接客户端识别能识别的服务器发送给来数据的编码格式)
Connection:Keep-Alive(告诉服务器不要关闭连接,由客户端决定什么时候关闭连接)
Cache-Control:no-cache(告诉服务器不要使用缓存)
Content-Length:(后接Request body的大小)
Request body:
“——” + 头部的boundary + “\r\n"
”Content-Disposition: form-data;name=“参数的key”” + “\r\n"
“Content-Type: text/plain; charset=编码格式“ + “\r\n"
”Content-Transfer-Encoding: 8bit“ + “\r\n"
“\r\n"
参数的value
“——” + 头部的boundary + “\r\n"
“Content-Disposition: form-data;name=“参数的key”;filename=“文件名”” + “\r\n"
”Content-Type: application/octet-stream“ + “\r\n"
“Content-Transfer-Encoding: binary” + “\r\n"
“\r\n"
文件的二进制流数据
“——” + 头部的boundary + “——” + “\r\n” (这里表示所有的request body的传输完毕)
0 0
- Http post方式传递参数的格式
- http post 方法传递参数的2种方式
- http传递参数信息和传递方式post、get
- SpringMVC之前台post方式传递的json格式参数无法到后台
- 利用window.open实现post方式的参数传递
- ExtJs store传递给后台的参数使用POST方式
- 利用window.open实现post方式的参数传递
- Window.location.href以post方式传递参数的方法
- Window.location.href以post方式传递参数的方法
- Android http get/post传递参数
- Android http get/post传递参数
- Android http get/post传递参数
- Android http get/post传递参数
- Android http get/post传递参数
- Android http get/post传递参数
- Android Http Get/Post 传递参数 Demo
- AngularJS $http post 传递参数数据
- AngularJS $http post 传递参数数据
- DFS
- 关于如何推动农村经济发展问题
- CrawlSpider问题总结
- Springmvc直接输出对象与接收对象问题
- iOS线程同步和锁
- Http post方式传递参数的格式
- 算法篇-数学基础-Cantor的数表
- 求阶乘N!末尾0的个数
- SpringMVC介绍之视图解析器ViewResolver
- 回溯法解决问题的3个步骤
- drawRect: 和 - (void)setNeedsDisplay 的一些理解
- 五台山地区草地生态系统服务价值估算
- Android基础:代码中实现界面动态布局
- 初窥Hadoop