postman 抓包工具charles的使用

时间:2023-03-09 07:32:37
postman 抓包工具charles的使用

1.直接打开charles,然后,如果有https的话,需要安装证书,然后,设置代理

2.如果不是https的,不需要设置代理,直接抓取就可以

先安装证书:

postman 抓包工具charles的使用

然后设置代理:

postman 抓包工具charles的使用postman 抓包工具charles的使用                 postman 抓包工具charles的使用

这个例子不是https的。所以,暂时不需要勾选代理

还是以http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?op=getMobileCodeInfo   这个网站来说

1.request里面是填入的参数

postman 抓包工具charles的使用

对应的Charles的request里面的参数,用表单来看

postman 抓包工具charles的使用

网页的请求:

postman 抓包工具charles的使用

对应的charles:

postman 抓包工具charles的使用

3.看request header里面的数据 content-type里面的数据,和postman 抓包工具charles的使用不一致。

postman 抓包工具charles的使用

所以,一般就用抓包工具里面抓到的信息取发送请求

url: http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx/getMobileCodeInfo

Content-Type: application/x-www-form-urlencoded

parameter:  mobileCode : 13001101409

userID:

postman去发请求:

postman 抓包工具charles的使用

参数类型选择:x-www-form-urlencoded

postman 抓包工具charles的使用

返回结果:

postman 抓包工具charles的使用