Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何捕获从 Android 模拟器到本地网络服务器的流量?我可以使用提琴手吗?
谢谢!
多亏了 EricLaws 的评论,我找到了一种捕获流量的方法。
我不得不使用反向代理并编写 FiddlerScript 规则。我添加了以下行
if (oSession.host.toLowerCase() == "10.0.2.2:8888") oSession.host = "localhost:8082";
在 OnBeforeRequest 函数中。在我的 Android 代码中,我使用地址 10.0.2.2:8888 来访问 localhost:8082。效果很好!