Fidder的使用
2024-09-04 21:16:49
默认的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: localhostrequset 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"}
最新文章
- leetcode 155
- Graphics samples
- UITextField限制字数的方法
- C++实现元组
- 14.5.5 Deadlocks in InnoDB
- python-集合(第二篇(七):集合)
- 关于openoffice英文乱码的问题
- Python中range的用法
- s3c2416裸跑环境配置
- log4net和一般的记录日志方法
- Python学习笔记21:数据库操作(sqlite3)
- [Codeforces 961G]Partitions
- [转]微信小程序实现图片上传功能
- spring启动容器加载成功后执行调用方法
- Linux 网卡聚合
- 如何再window下统计自己写的代码行
- Excel转datatable
- 13: openpyxl 读写 xlsx文件
- BZOJ1977或洛谷4180 [BJWC2010]次小生成树
- css3动画特效集合