Develop a simple web server in python that is capable of


Use the textbook for the following review questions, problems, and programming assignments.

Textbook: Computer Networking: A Top-Down Approach (6th Edition)

Socket Programming Assignments

Note : For these two programming assignments, we provide the skeleton python codes and your job is to complete the code and test it.

Assignment 1: Web Server

In 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; and

(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.

We provide the skeleton code in Blackboard in Assignments Documents. Your job is to complete the code, 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. Note that only the three lines of codes are missing and these lines are indicated by #+++++ in the python source code. Your task is to fill out those three lines by proper commands.

Assignment 2 : Mail Client

The goal of this programming assignment is to create a simple mail client that sends email to any recipient. Your client will need to establish a TCP connection with a mail server (e.g., a Google mail server), dialogue with the mail server using the SMTP protocol, send an email message to a recipient (e.g., your friend) via the mail server, and finally close the TCP connection with the mail server.

We provide the skeleton code in Blackboard in Assignments Documents. Your job is to complete the code and test your client by sending email to different user accounts. You may also try sending through different servers (for example, through a Google mail server and through your university mail server).

Note that only the four lines of codes are missing and these lines are indicated by #+++++ in the python source code. Your task is to fill out those four lines by proper commands.

Attachment:- Socket Programming.rar

Request for Solution File

Ask an Expert for Answer!!
Dissertation: Develop a simple web server in python that is capable of
Reference No:- TGS02506589

Expected delivery within 24 Hours