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

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

先安装证书:

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的使用

 

相关文章:

  • 2021-05-15
  • 2021-10-29
  • 2021-04-12
  • 2021-11-08
  • 2021-11-14
猜你喜欢
  • 2021-11-09
  • 2021-12-02
  • 2021-11-09
  • 2022-01-11
  • 2021-12-14
相关资源
相似解决方案