December 29 2018, 11:13

UPDATE: Solved. Thank you Timofey Klyubin, using werkzeug, so far so good

If anyone is really good at Python and especially at writing servers with it, please knock on my door. I’m stuck. Specifically, ThreadingMixIn + HTTPServer. HTTPRequestHandler is working inconsistently.

I might be reinventing the wheel, and there might already be some Python code or Node code that sets up a local server, takes a request, forwards it to a real domain, gets a response, logs everything along the way, and if necessary, modifies headers. HTTPS is not needed. Essentially, it’s a request router, but it needs to be easily customizable.

Leave a comment