macos OS X 上的 HTTP 通信监控
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/145264/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTTP communication monitoring on OS X
提问by lajos
What application do you use to monitor HTTP communication on OS X?
您使用什么应用程序来监视 OS X 上的 HTTP 通信?
采纳答案by Pascal Paradis
Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information).
Charles 是一个 HTTP 代理/HTTP 监视器/反向代理,它使开发人员能够查看他们的机器和 Internet 之间的所有 HTTP 流量。这包括请求、响应和 HTTP 标头(其中包含 cookie 和缓存信息)。
Runs on JAVA. Available on OSX, Linux and Windows.
在 JAVA 上运行。在 OSX、Linux 和 Windows 上可用。
回答by user391552
I like TcpCatcher. It is free and 100% java based so it works fine on Mac OS X. Not only, you will be able to monitor HTTP communication but you will also be able to change requests / responses on the fly which opens very interesting possibilities.. There is a dedicated tutorial on capturing iPhone's HTTP communication.
我喜欢 TcpCatcher。它是免费的并且 100% 基于 Java,因此它在 Mac OS X 上运行良好。不仅,您将能够监控 HTTP 通信,而且您还能够动态更改请求/响应,这开启了非常有趣的可能性。 有是关于捕获 iPhone 的 HTTP 通信的专门教程。
回答by Andy Lynch
If you're looking to trace application traffic, Wiresharkis the best tool I've found - it can log and decode HTTP and many other protocols, and the GUI's search tools make finding the messages you're interesting in pretty quick and painless.
如果您想跟踪应用程序流量,Wireshark是我发现的最好的工具 - 它可以记录和解码 HTTP 和许多其他协议,并且 GUI 的搜索工具可以非常快速和轻松地找到您感兴趣的消息。
Other reasons I recommend this:
我推荐这个的其他原因:
- It's quick to install
- It captures traffic straight from the network card, there is no need to change the application or set up proxies etc. It'll even read dumps captured from tcpdump and similar tools offline
- It's multi-platform (works on Windows/Mac/Linux and others)
- It's open source
- 安装很快
- 它直接从网卡捕获流量,无需更改应用程序或设置代理等。它甚至可以离线读取从 tcpdump 和类似工具捕获的转储
- 它是多平台的(适用于 Windows/Mac/Linux 等)
- 它是开源的
回答by lajos
回答by Robert Gould
You could also use dTrace to monitor in even more detail, if that's what you need.
如果您需要,您还可以使用 dTrace 进行更详细的监控。
回答by Kendall Helmstetter Gelner
I second using Charles, it's a really excellent tool for HTTP examination. When used with the iPhone simulator (or any other OS X application) Charles automatically sets up the system settings to use itself as a proxy so you only have to launch and run. It also is very easy to examine the traffic in a few different ways, and has a very lenient free trial version that is fully featured (time limited to an hour with a few nag screens) so you can give it a good try.
我第二次使用 Charles,它是一个非常出色的 HTTP 检查工具。当与 iPhone 模拟器(或任何其他 OS X 应用程序)一起使用时,Charles 会自动设置系统设置以将自身用作代理,因此您只需启动和运行即可。它也很容易以几种不同的方式检查流量,并且有一个非常宽松的免费试用版,功能齐全(时间限制为一个小时,有几个唠叨的屏幕),所以你可以试一试。
回答by paxos1977
Depends on what you mean by monitor...
取决于你所说的监视器是什么意思......
If you simply want to know/stop when an installed application (or the OS) tries to "phone home", then I recommend LittleSnitch.
如果您只是想知道/停止安装的应用程序(或操作系统)何时尝试“打电话回家”,那么我推荐LittleSnitch。
The peace of mind you gain is well worth the loss of weight from your bank account.
您获得的安心值得从您的银行账户中减轻体重。