默认的header是类似这样的

User-Agent: Fiddler 
Host: localhost
Content-Length: 34

只需要改成这样的

User-Agent: Fiddler 
Content-Type: application/x-www-form-urlencoded
Host: localhost
Content-Length: 34
然后我们在request body里都这么写post串,服务端就可以接收post值了
city='dfdafdsfsaf'&mm="1232323123"

神马,还想传JSON?,so easy,把header里改成这样

User-Agent: Fiddler 
Content-Type: application/json
Host: localhost
requset body里就这么写
{     
"city": "dfdafdsfsaf",
"mm": "1232323123"
}
在Http中,POST参数的请求格式是由Content-type选项控制的。比较常见两种Content-type选项和数据格式我用下表列出:
content-type 参数格式
application/x-www-form-urlencoded info=10001030A&itme=wwwdn_06RMB
application/json {"info":"10001030A","item":"wwwdn_06RMB"}


最新文章

  1. leetcode 155
  2. Graphics samples
  3. UITextField限制字数的方法
  4. C++实现元组
  5. 14.5.5 Deadlocks in InnoDB
  6. python-集合(第二篇(七):集合)
  7. 关于openoffice英文乱码的问题
  8. Python中range的用法
  9. s3c2416裸跑环境配置
  10. log4net和一般的记录日志方法
  11. Python学习笔记21:数据库操作(sqlite3)
  12. [Codeforces 961G]Partitions
  13. [转]微信小程序实现图片上传功能
  14. spring启动容器加载成功后执行调用方法
  15. Linux 网卡聚合
  16. 如何再window下统计自己写的代码行
  17. Excel转datatable
  18. 13: openpyxl 读写 xlsx文件
  19. BZOJ1977或洛谷4180 [BJWC2010]次小生成树
  20. css3动画特效集合

热门文章

  1. [CSP-S模拟测试]:施工(DP+单调栈+前缀和)
  2. Linux:主设备号和次设备号
  3. sdb报告-10 错误问题定位
  4. TypeScript躬行记(5)——类型兼容性
  5. web编程非常实用的在线工具大全---转载
  6. canvas时间粒子
  7. jQuery对于demo元素的上移、下移、删除操作等实现
  8. Python 的PIL,可以解决ImportError The _imagingft C module is not installed
  9. 轻松上手nodeJs爬取想要页面的数据
  10. Sql 将A表数据插入到B表