MuhammadKhan17/clownProxy
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
note: Only use the firefox browser when using this program. Other browsers may work but they may also not. 1) extract a1ServerTest.c from the Zip folder 2) open the firefox browser and go into settings. 3) find the proxy settings and select Manual proxy configuration. 4) type in the localhost and input the port number 11111. 5) enter the website you want to visit but be sure to use http and not https. 3) open a terminal. 4) input the directory of where a1ServerTest.c is located. 5) compile the program with the gcc command. 6) run the application with the ./a.exe command but time it with the refresh of your desired webpage. 7) browse, explore and try to have fun! 8) if their are any questions on running the program, please email Muhammad.Khan17@ucalgary.ca testing was done at home on my computers localhost and not the cpsc servers. this proxy replaces all instances of "Happy" with "silly", this is case sensitive and it won't replace "happy". It also replaces all JPG images with that of 1 of 2 clowns that are randomly select, but their does seem to be some preference for clown 1, im not sure why. this program will not replace GIF or PNG as I was short on time and wasn't able to get those working. the assignmet doesn't ask to replace them so I think I am ok. the proxy only sends http 1.0 requests to the website but it can recieve infromation from http 1.1 from the browser/client.