日食/ Android的 - 如何监控设备的HTTP流量 [英] Eclipse / Android - how to monitor device's HTTP traffic
问题描述
我有我的设备连接到调试Android应用程序,但我需要看到HTTP请求和响应(INC。的头信息)。
I have my device connected to debug Android apps, but I need to see the HTTP requests and responses (inc. header info).
我见过被问及如何做到这一点的一个模拟器类似的问题,而是一个真正的设备连接时如何做到这一点?
I've seen a similar question asked on how to do this for an emulator, but how to do this when a real device is connected?
推荐答案
您可以使用查尔斯,是真正强大的工具,不正是你需要的。
You can use Charles, is a really powerful tool that does exactly what you need.
查尔斯让你嗅出通过HTTP从您的实际设备发送的数据包,您可以使用它的方式很简单:
Charles allows you to sniff the packets sent through HTTP from your actual device, the way you use it is simple:
- 下载并安装查尔斯,运行程序,并指定代理端口
- Android设备连接到计算机的运行查尔斯非常相同的网络
- 转到WiFi的设置在Android设备和长期水龙头连接到网络上,然后去修改网络 - >显示高级选项
- 设置代理服务器的手册,并在代理服务器主机名设置你的电脑的IP192.xxx.x.x,并在代理端口加入查尔斯代理服务器设置中指定的同一个端口。
就是这样,一切从您的手机流量将代理查尔斯和它会告诉你的头,参数,等等...
And that's it, all the traffic from your phone will be proxy to charles and it will show you headers, parameters, etc...
希望它能帮助
祺!
这篇关于日食/ Android的 - 如何监控设备的HTTP流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!