Proxy server
Build simple proxy server in Python
There are reverse proxy and forward proxy. Reverse proxy handle the request coming to your server, manipulate it and then send to your server. Forward proxy, handle the request you sent from your side to the target site, manipulate it. In short, proxy work as the middle man.
In this post we will implement forward proxy.
The code: