Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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'))

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote