Write a Web Proxy that can receive malformed (all lowercase) HTTP requests from
ID: 441069 • Letter: W
Question
Write a Web Proxy that can receive malformed (all lowercase) HTTP requests from muliple clients, re-format them correctly, send them to the indended destination webserver, and then forward the server HTTP response back to the client. Notice that the proxy may receive multiple requests from different clients all at the same time, and each request must be handled by a different Thread.
The program must take the following command line argument:
-p proxy_TCP_port_number
The -p argument is the TCP port number on which the proxy will listen for the client's requests.
The program (after it is compiled) needs to run for example as
$ java WebProxy -p 12345
Program should be written in Java
Explanation / Answer
www.swi-prolog.org/pldoc/doc_for?object=section(2,'3',swi('/doc/packages/http.html'))
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.