Charles基本使用

Charles使用

查找电脑IP,菜单选项helpàLocal IP Addresses

手机连接代理

手机打开WiFi,把代理模式设置为手动,设置主机名为Charles所在机器的ip,端口号为Charles配置的代理端口。这样手机客户端的所有http请求,都会被charles代理。可以方便的查看客户端的http请求

连接成功后就可以开始抓包了

抓包内容详解,如图所示

接口重定向

  • 打开http://www.mocky.io/,把response里面的内容copy至body中
  • 点击Generate my http response,生成接口地址
  • 然后复制生成的接口,添加到charles—>map to remote

 

 

原文地址:https://www.cnblogs.com/chenchen-tester/p/6734661.html