配置Fiddler
Tools-Options-Connections
- 查询Fiidler所使用的端口,默认为8888
- 允许远程连接
移动端代理配置
- CMD使用ipcongfig命令查询PC的IP地址
- 手机连接WIFI时设置代理为手动,主机名填写PC的IP地址,端口号为Fiddler所使用的端口
配置成功则在使用手机过程中Fiddler的进程界面能够看到手机端发出的请求
看看效果
用微信打开个公众号,查看其历史消息

其中host为mp.weixin.qq.com的几个请求即是在访问微信时候发出的。
用webview来看看它的内容
尝试后发现不少内容都显示Response is encoded,click to decode




通过观察请求路径的规律,比如正文请求都有个_biz什么的,评论请求中都有comments,利用这些规则就可以清洗出我们需要的内容了。
想试着看看微博的请求,我才只是打开,还没刷新,已经上百条请求了
网友评论