macos 适用于 Linux 和 Mac 的 HTTP 调试代理
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1617536/
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 debugging proxy for Linux and Mac
提问by George V. Reilly
I use the Fiddlerproxy to debug all kinds of HTTP issues on Windows. It's great for inspecting headers and responses across multiple pages.
我使用Fiddler代理来调试 Windows 上的各种 HTTP 问题。它非常适合检查跨多个页面的标题和响应。
Is there a good HTTP debugging proxy for Mac and Linux? I found Charles, but it's $50 once the trial runs out and it crashed on me. I could use Wireshark, but it's a pain.
是否有适用于 Mac 和 Linux 的良好 HTTP 调试代理?我找到了Charles,但是一旦试用期结束,它就变成了 50 美元,它在我身上崩溃了。我可以使用Wireshark,但这很痛苦。
采纳答案by EricLaw
You can of course, just use Fiddler on a Windows PC and point the Mac/Linux box at it. http://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-NonWindows
当然,您可以只在 Windows PC 上使用 Fiddler,然后将 Mac/Linux 框指向它。 http://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-NonWindows
You can also run Fiddler in a Windows or Linux virtual machine on the Mac itself: http://blogs.telerik.com/fiddler/posts/14-01-15/running-fiddler-in-virtualbox-on-mac
您还可以在 Mac 本身的 Windows 或 Linux 虚拟机中运行 Fiddler:http: //blogs.telerik.com/fiddler/posts/14-01-15/running-fiddler-in-virtualbox-on-mac
回答by George V. Reilly
Mitmproxyis a useful command-line proxy tool.
Mitmproxy是一个有用的命令行代理工具。
It has also an user UI.
它还有一个用户界面。
- From the command line run
mitmweb
- Set up your app to use a proxy server and point it at http://127.0.0.1:8080
- Go to http://127.0.0.1:8081to see all the requests in the "flow" tab. Very similar to the Google Chrome Console "Network" tab.
- 从命令行运行
mitmweb
- 将您的应用设置为使用代理服务器并将其指向http://127.0.0.1:8080
- 转到http://127.0.0.1:8081以查看“流”选项卡中的所有请求。非常类似于 Google Chrome 控制台的“网络”选项卡。
回答by Nathan
回答by Cody Caughlan
Charles is $50 as you know, but I find it to be completely worth the money. A ton of features, including SSL support.
正如你所知,Charles 是 50 美元,但我发现它完全物有所值。大量功能,包括 SSL 支持。
FWIW, I've never had it crash on me.
FWIW,我从来没有让它崩溃过。
回答by Skyr
Wireshark won't help you if you have to debug HTTPS requests (unless you can get the encryption keys for both endpoints - see the Wireshark site for details). Firebug and Tamper Data are getting close, but for thorough analysis, I sometimes like to save a recorded session. I'd recommend giving the OWASP Zed Attack Proxy(the successor of Parosproxy, which is no longer actively developed) a try. It is a Java application serving as a http(s) proxy; it provides quite a lot of features and proved to be very helpful to me in the past.
如果您必须调试 HTTPS 请求,Wireshark 将无济于事(除非您可以获得两个端点的加密密钥 - 有关详细信息,请参阅 Wireshark 站点)。Firebug 和 Tamper Data 越来越接近,但为了彻底分析,我有时喜欢保存记录的会话。我建议您尝试一下OWASP Zed Attack Proxy(Parosproxy的继任者,不再积极开发)。它是一个用作 http(s) 代理的 Java 应用程序;它提供了相当多的功能,过去证明对我非常有帮助。
ZAP offers an easy autoconfiguration of Firefox. Bear in mind to do that on a separate (meaning: not for other browsing activities) Firefox profile: In order to intercept https, ZAP will install a new SSL certificate.
ZAP 提供了一种简单的 Firefox 自动配置。请记住在单独的(意思是:不用于其他浏览活动)Firefox 配置文件上执行此操作:为了拦截 https,ZAP 将安装新的 SSL 证书。
回答by Tatu
You may want to try Live HTTP Headers add-on for Firefox.
您可能想尝试 Firefox 的 Live HTTP Headers 插件。
回答by David
Paros works like a charm for me on my Ubuntu Jaunty x64. Just as simple as download, run, set proxy settings in browser to localhost:8080 and you are ready to inspect your http browsing.
Paros 在我的 Ubuntu Jaunty x64 上对我来说就像一个魅力。就像下载、运行、将浏览器中的代理设置设置为 localhost:8080 一样简单,您就可以检查您的 http 浏览了。
It is Java so it works on Windows, Linux and Mac.
它是 Java,因此可以在 Windows、Linux 和 Mac 上运行。
I prefer this to firefox plugin because I can use it with different browsers and software.
与 firefox 插件相比,我更喜欢这个插件,因为我可以将它与不同的浏览器和软件一起使用。
ParosProxy download: http://sourceforge.net/projects/paros/
ParosProxy 下载:http: //sourceforge.net/projects/paros/
Paros hasn't been updated for many years. However there is an actively maintained fork of Paros - the OWASP Zed Attack Proxy (ZAP): https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project
Paros 已经很多年没有更新了。然而,Paros 有一个积极维护的分支——OWASP Zed 攻击代理(ZAP):https: //www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project
回答by Ben Guthrie
There are a number of Chrome store apps now. I'm using DHC by Restletnow.
现在有许多 Chrome 商店应用程序。我现在正在使用Restlet 的 DHC。
回答by Natalie Adams
I personally find Wireshark to be quite easy to use. Just apply a filter for HTTP traffic and right click on the traffic going/coming to/from your site and click "Follow TCP stream".
But, if you want something a little more specific for HTTP debugging I would recommend Firebug http://getfirebug.com/
我个人认为 Wireshark 非常易于使用。只需对 HTTP 流量应用过滤器,然后右键单击进出您站点的流量,然后单击“跟随 TCP 流”。
但是,如果你想要一些更具体的 HTTP 调试,我会推荐 Firebug http://getfirebug.com/
回答by Josh Lee
If you limit yourself to Firefox, the Tamper Dataextension is pretty solid.
如果您只使用 Firefox,那么Tamper Data扩展就非常可靠。