Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In the HTTP server exercise, we examine the HTTP protocol. The root content is at http: / / data . cyber.org.il / networks / webroot
In the HTTP server exercise, we examine the HTTP protocol. The root content is at http:datacyber.org.ilnetworkswebrootzip. Skeleton code is available at https:datacyber.org.ilnetworkshttpserver.py FIXEDRESPONSE HTTP OKr ContentLength: r ContentType: texthtml; charsetISOr r Hello!" Students are required: To implement an HTTP server in Python that uses the root content as its resources. Your code should Implement support serving html jpg css and js files. The root content contains samples of each for you to test your code on Your code must support the following return codes a OK b Moved temporarily c Not found Implement GET request handling with parameters. When the following query is passed to the server, it should calculate the area of a triangle. In this example, it returns Your web site shoould accept any whole integer as input. http::calculatearea?height&width Check the Exercise The exercise test is done through a browser, you need to make sure that the whole site downloads correctly, including clicking on the JS square. If some pages do not download correctly, a partial grade will be given and no resubmission is possible. Check error code examine the server code and check which resource should be "relocated". Request this resource and make sure you get a message. Check the error code Request a nonexistent resource and make sure you get a Close the client and make sure that the server does not hang, allowing the connection of new clients. When going through the code itself, we want to make sure that the functions work correctly: Check that the HTTP request is valid is performed correctly, including all fields If no specific resource is requested, a default resource is returned Problem Grading The site does not download in full the three resource types and the icon file favicon Error code not received Minus Error code not received Minus The calc area does not work on positive whole integers Minus The check that the HTTP request is valid is not performed correctly Minus The server does not return a default resource Minus Close a client and open a new one the site
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started