Shameless 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.... https://github.com/mitmproxy/mitmproxy/tree/master/examples
I would greedily read a write-up about this.
Cool! I'll write it this week and get back to you.
Please post it here on HN when you're done. I'd love to read such a tutorial as well!
Re:Charles – Web Debugging Proxy Application
by seanp2k2 on Sunday June 26, 2016 @03:40PM
(#11982304)
Same, 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?
Re:Charles – Web Debugging Proxy Application
by sidthegeek on Sunday June 26, 2016 @02:34PM
(#11981999)
Me too! Please post the link on HN when you have it available!
Re:Charles – Web Debugging Proxy Application
by chris_wot on Sunday June 26, 2016 @09:07PM
(#11983649)
It'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!
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.