#How to run
- run proxy on command line:
python proxy
- open browser
- set proxy settings to localhost:8080
#How it works
- creates socket for proxy server
- calls main loop
- uses
select
to listen for incoming traffic - recieves request from browser. Starts new thread in function Forward()
- forward parses the header. extracts the data and calls client
- client determines whether to do a GET, POST, or HEAD function call
- enqueues data from destination
- dequeues data from destination and returns it to browser
- uses
- browser displays data from destination