Yet another proxy server in C++
- Extract the compressed file
makein terminal for compiling and building the binary
./proxy Portto start the proxy server in the desired PORT
- If you are testing the proxy server in IIIT-A network then change the value of
CONNECT_TO_IRONPORTdefined in line 15 proxy.cpp to
- If you are using mobile data then there is no need of chaning the value of
CONNECT_TO_IRONPORT. Leave it as
- The python tests would only work under mobile data.
- Each client would connect to the proxy server which in turn fetches the desired web page back to the client.
- To support multiple clients I used thread programming (pthread library).
- The request made to the proxy server by the client can be validated with the help of
- HTTPS is not supported becuase the data send between the client and server is heavily encrypted. No sense can be made of data and it would be useless to cache anything in the proxy server.
Go to the
Edit menu in Firefox.
Advancedand then select `Network.
Manual Proxy Configuration. If you are using localhost, remove the default
No Proxy for: localhost 127.0.0.1. Enter the hostname (eg localhost) and port where your proxy program is running.
- Save your changes by selecting
OKin the connection tab and then select
Closein the preferences tab.