Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HTTP Server Implement in Java/Python/Go a simple HTTP 1.0 server (that listens to port 80) and that can handle HTTP GET requests of browsers. Your

image text in transcribed
HTTP Server Implement in Java/Python/Go a simple HTTP 1.0 server (that listens to port 80) and that can handle HTTP GET requests of browsers. Your server should be able to handle the three types of GET requests outlined below. a) Upon eceiving a web reqest o the type http://machine/doc/page (e.g. http://localhost/doc/page.html), the server will analyze the request line and search for the specified page in its local directory. If the page can be found, send it to the browser. If the file can't be found return a 404. b) Upon receiving a web request of the type http://machine/echo (e.g. http://localhost/echo), the server will return a HTML5 page that contains all the data sent by the browser. c) Upon receiving a web request of the type http://machine/log (e.g. http://localhost/log), the server will return a HTMLS page that contains a list of all the requests made to the server since it was started. Each log entry must be in a separate line. To simplify your assignment, you can Assume that only HTML5 content will be requested. Pages must be in the same directory as the server All requests are well-formed HTTP requests All requests can be handled sequentially (no need to implement multi-threaded server). Implement you assignment in Java or Go or Python using only the standard libraries

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions