To develop a simple webserver to serve html programming pages.
HTML content creation is done
Design of webserver workflow
Implementation using Python code
Serving the HTML pages.
Testing the webserver
'''py from http.server import HTTPServer,BaseHTTPRequestHandler
content=''' <!doctype html>
<title> My Web Server</title> '''class MyServer(BaseHTTPRequestHandler):
def do_GET(self):
print("Get request received...")
self.send_response(200)
self.send_header("content-type", "text/html")
self.end_headers()
self.wfile.write(content.encode())
print("This is my webserver") server_address =('',8005) httpd = HTTPServer(server_address,MyServer) httpd.serve_forever() '''
The program is executed succesfully.

