Question: Part 1 : Web Proxy Server In this lab, you will learn how web proxy servers work and one of their basic functionalities, caching. Generally,
Part : Web Proxy Server In this lab, you will learn how web proxy servers work and one of their basic functionalities, caching. Generally, when the client makes a request, the request is sent to the web server. The web server then processes the request and sends back a response message to the requesting client. In order to improve the performance, we create a proxy server between the client and the web server. Now, both the request message sent by the client and the response message delivered by the web server passes through the proxy server. In other words, the client requests the objects via the proxy server. The proxy server will forward the client's request to the web server. The web server will then generate a response message and deliver it to the proxy server, which in turn sends it to the client. Use your Project multithreaded web server to implement a multithreaded web proxy server. Assume that caching is not enabled on the proxy server. In this case, the main functionality of the proxy server is to forward requests received from the client to the web server and forward responses received from the web server to the client, as shown in the figure below.When the proxy server forwards a request to the server or forwards a response to the client, it should print the following information on the terminal: proxyforward, DESTINATION THREADID TIMESTAMP Where "DESTINATION" is either client or server. Also, modify your web server implementation from Project to print the following information on the terminal whenever it responds to a request: serverresponse, THREADID TIMESTAMP Use the attached template HTML file to create multiple copies with different content to test your implementation. When testing locally on the same device, the server code and proxy code should be placed and run from separate directories.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
