Question: Dummy Proxy (100pts) Your proxy should listen on the port specified from the command line and wait for incoming client connections. Once a client has

Dummy Proxy (100pts)

Your proxy should listen on the port specified from the command line and wait for incoming client

connections. Once a client has connected, the proxy should read data from the client and then check

for a properly-formatted HTTP request.

The client issues a request by sending a line of text to the proxy server. This request line consists of

an HTTP method (most often "GET", but "POST", "PUT", and others are possible), a request URI (like

a URL), and the protocol version that the client wants to use ("HTTP/1.1"). The request line is

followed by one or more header lines. The message body of the initial request is typically empty. URI

in the HTTP request to a proxy server is required to be absolute URL, so you will obtain both host

name and path to the file in request line.

Your dummy proxy is only responsible for accepting the HTTP request. All requests should elicit a

well-formed HTTP response with status code 501 "Not Implemented". In the body of this HTTP

response, you should supply a dummpy HTML page which prints the URL requested by client and a

message "You request will be forwarded."(However, it won't...unless you finish the next part).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!