Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

n this assignment, you will develop a simple Web server in Python that is capable of processing only one request. Specifically, your Web server will (i) Create a connection socket when contacted by a...

1 answer below »

n this assignment, you will develop a simple Web server in Python that is capable
of processing only one request. Specifically, your Web server will
(i) Create a connection socket when contacted by a client (browser)
(ii) Receive the HTTP request from this connection
(iii) Parse the request to determine the specific file being requested
(iv) Get the requested file from the server’s file system
(v) Create an HTTP response message consisting of the requested file
preceded by header lines
(vi) Send the response over the TCP connection to the requesting browser.
If a browser requests a file that is not present in your server, your server should
return a “404 Not Found” error message.
Your job is to code the steps above, run your server, and then test your server by
sending requests from browsers running on different hosts. If you run your server
on a host that already has a Web server running on it, then you should use a different
port than port 80 for your Web server.
 Make sure to test your program before submission, if your programs contains
syntax errors, the grade is zero.
 Include a README file for instructions on how to run your program.
 Documentation, write comments in your source code so that anyone reading your code will be able to understand it

 

WİTH BY PYTHON 

Answered 33 days After Jun 06, 2022

Solution

Aditi answered on Jul 10 2022
79 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here