码迷,mamicode.com
首页 > 移动开发 > 详细

请求头header里的contentType为application/json和capplition/x-www-form-urlencoded

时间:2018-12-13 21:46:07      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:就会   content   tps   str   提交数据   head   logs   服务   html   

application/x-www-form-urlencoded

最常见的 POST 提交数据的方式了。浏览器的原生 <form> 表单,如果不设置 enctype 属性,那么最终就会以 application/x-www-form-urlencoded 方式提交数据。

 

 

application/json

用来告诉服务端消息主体是序列化后的 JSON 字符串。

 

参考:https://www.cnblogs.com/softidea/p/5745369.html

请求头header里的contentType为application/json和capplition/x-www-form-urlencoded

标签:就会   content   tps   str   提交数据   head   logs   服务   html   

原文地址:https://www.cnblogs.com/Bugj/p/10116507.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!