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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started