5 ms·
I actually use a local instance of nginx/openresty as my web debugging proxy. I should write a blog on it or something, since it seems like few people do. It's
by ejcx 10y ago
I actually use a local instance of nginx/openresty as my web debugging proxy. I should write a blog on it or something, since it seems like few people do.
It's free. It's a breeze to set up, all you need to do is point it at the upstream server you are testing, and it has lua support so you can write code and modify requests on the fly, strip headers, inject things with code.
All the work is already done to manipulate HTTP requests and responses in nginx so it is actually really smooth, there is no learning curve of a new tool, and everything just works.
- bckmn 10y agoI would greedily read a write-up about this.
- ejcx 10y agoCool! I'll write it this week and get back to you.
- GVRV 10y agoPlease post it here on HN when you're done. I'd love to read such a tutorial as well!
- seanp2k2 10y agoSame, never thought of doing that even though I run Privoxy locally and on my home internet gateway (Ubiquiti ERLite which runs ARM Debian; could probably run nginx on it as well). Do you set up anything to terminate SSL?
- sidthegeek 10y agoMe too! Please post the link on HN when you have it available!
- mhils 10y agoShameless plug: If you want scripting and you are not an nginx expert, mitmproxy has a really powerful Python scripting interface as well: http://docs.mitmproxy.org/en/latest/scripting/inlinescripts.html http://docs.mitmproxy.org/en/latest/scripting/inlinescripts.... https://github.com/mitmproxy/mitmproxy/tree/master/examples https://github.com/mitmproxy/mitmproxy/tree/master/examples
- legohead 10y agoThis solution works with HTTPS traffic too?
- chris_wot 10y agoIt's definitely possible, but for me it would have to be as easy to use as Charles Proxy. Charles doesn't cost that much money, and frankly I've used it so often that it feels like I got a bargain!
- nmb 10y agoWould love to hear about your setup too.