简体   繁体   English

用于监控HTTP流量的工具

[英]Tool to monitor HTTP traffic

I have an application on my iPhone which sends out Http requests; 我的iPhone上有一个应用程序发出Http请求; is it possible to look into the HTTP stream using some tool?? 是否可以使用某些工具查看HTTP流?

I use standalone version of (IEInspector's) HttpAnalyzer tool on my windows PC to monitor HTTP traffic from all processes including the apps on Android phone (thanks to android debug bridge interface). 我在我的Windows PC上使用独立版本的(IEInspector)HttpAnalyzer工具来监控来自所有进程的HTTP流量,包括Android手机上的应用程序(感谢android调试桥接口)。 Is there a similar tool for OS X that I can use for iPhone apps? 我可以为iPhone应用程序使用类似的OS X工具吗? Is this even allowed? 这甚至是允许的吗?

Thanks in advance. 提前致谢。

I use Charles for HTTP monitoring. 我使用Charles进行HTTP监控。 It can hook into the standard OS X proxy settings (as used by Safari) so it should work fine with the iPhone emulator in the SDK. 它可以挂钩到标准的OS X代理设置(由Safari使用),因此它可以与SDK中的iPhone模拟器一起使用。

To directly monitor the traffic you can use tools like Wireshark or tcpdump . 要直接监控流量,您可以使用Wiresharktcpdump等工具。

If you want to send 'fake' requests to a server or have a simple listening server running to receive requests from the iPhone you can use netcat and cURL. 如果您想向服务器发送“假”请求或者运行简单的侦听服务器来接收来自iPhone的请求,您可以使用netcat和cURL。 I've explained that case in a tutorial if that is sufficient for what you need. 我已经在教程中解释了这个案例,如果这足以满足您的需求。 If not I recommend Wireshark, which has a GUI and is quite simple to understand. 如果不是,我推荐Wireshark,它有一个GUI,很容易理解。

You can use HTTP Catcher . 您可以使用HTTP Catcher It can monitor HTTP traffic without a computer and Wi-Fi. 它可以在没有计算机和Wi-Fi的情况下监控HTTP流量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM