I want to write a program that changes the HTTP headers in my requests that are sent by my web-browser. I believe it can be done with a proxy server. So, I'd like to write a proxy server.
How can I do this in Python?
I want to write a program that changes the HTTP headers in my requests that are sent by my web-browser. I believe it can be done with a proxy server. So, I'd like to write a proxy server.
How can I do this in Python?
Why not use an existing proxy such as Charles HTTP Proxy? It has the ability to rewrite headers and do all sorts of cool stuff to requests and responses.