Write your own http client to test your server, Computer Networking

Assignment Help:

- The project should include a web server, and an example webpage
- Webserver should continue to accept multiple requests from client browser
- Webserver should print out logs: how many connections have been established and what is request method (GET or POST).
- The example webpage you include within the webserver should include a welcome page and a small picture.

Exemplary Steps:

1. Make web server program with Python code and compile it (you should learn by yourselves): in this step, you should specify you would like to accept requests from clients.
2. Prepare a simple web page you want to show to the user when the client browserconnects to the server. Put the example web page in the same dictionary of your server program.
3. Using web browser in the same computer, connect to https://localhost:
4. Connect multiple times and check whether your program spawns threads properly.

Report (not more than two pages)
- Briefly introduce how the multi-thread works. DO NOT INCLUDE SOURCE CODE IN YOUR REPORT
- Include output from web server (logs) and one screen shot of web browser when it is connected.

Bonus
Instead of using a browser, write your own HTTP client to test your server. Your client will connect to the server using a TCP connection, send an HTTP request to the server, and display the server response as an output. You can assume that the HTTP request sent is a GET method.

The client should take command line arguments specifying the server IP address or host name, the port at which the server is listening, and the path at which the requested object is stored at the server. The following is an input command format to run the client.

client.py server_hostserver_port filename


Related Discussions:- Write your own http client to test your server

What are the benefits of wireless devices, What are the benefits of wireles...

What are the benefits of wireless devices One benefit is that if everyone uses standard, everyone can talk to anyone. Another benefit is that extensive use of any standard will

What is meant by asymmetrical protocols, There is a many-to-one relationshi...

There is a many-to-one relationship among clients and server. Clients always start the dialog by requesting a service. Servers are passively awaiting for requests from clients.

Karnaugh map, Qustions: Simplify the following expression using a Karna...

Qustions: Simplify the following expression using a Karnaugh map: F = XY‾Z + X‾Y‾Z + XY Z +X‾ Y Z

Configure ip settings for the linksys wrt300n- ccna, Configure IP Settings ...

Configure IP Settings for the Linksys WRT300N The best way to understand the following settings is to think of the WRT300N as being same to a Cisco IOS-based router with two di

Determine the types of intranet, Determine the Types of intranet Intran...

Determine the Types of intranet Intranets have been broadly classified into three types based on their functionality, viz., The Bulletin Board, Database Management and

Determine the working of lan within a corporate network, Determine the work...

Determine the working of LAN within a corporate network It should be very clear right from the beginning that a firewall is not simply for protecting a corporate network from u

Fiber optic extension, FIBER OPTIC EXTENSION:  The LAN extension using f...

FIBER OPTIC EXTENSION:  The LAN extension using fiber optic is given in the figure below:   Figure The fiber-modem translates digital data into pulses of light the

Process switching and fast switching, Process Switching It applies the...

Process Switching It applies the brute force method to switch packets wih consumption of large amount of CPU time List of items are needed when switching packets Routing

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd