How to catch all HTTP traffic (local proxy)

独自空忆成欢 提交于 2019-12-03 03:46:50
Jonas Elfström

There's an HTTP Proxy in WEBrick (part of Ruby stdlib) and here's an implementation example.

If you like living on the edge there's also em-proxy by Ilya Grigorik.

This post by Ilya implies that it does seem to need some tweaking to solve your problem.

Is having a proxy built in Ruby the important point here? Or just to "get access to all HTTP traffic on your machine"? If the latter, there's a free program called HTTP Sniffer and Analyzer that can supposedly do this. I have not used it but I have seen it get some positive reviews. There are several other such programs, though most seem to be paid. On OS X, Linux, etc, you can use the in-built tcpdump in clever ways to get a similar effect.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!