To develop a simple webserver to serve html pages and display the configuration details of laptop.
HTML content creation.
Design of webserver workflow.
Implementation using Python code.
Serving the HTML pages.
Testing the webserver.
from http.server import HTTPServer,BaseHTTPRequestHandler
content=''' <!doctype html>
<title> My Web Server</title>| Configuration | Description |
|---|---|
| Processor | Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHzx |
| Installed RAM | 8.00 GB (7.85 GB usable) |
| system type | 64-bit operating system, x64-based processor |
| Device ID | 2A191FB8-5571-4CE6-A3E1-F9486DE092C5 |
| Pen and Touch | No pen or touch input is available for this display |
| Graphic Processor | NVIDIA GeForce RTX 2050 |
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 =('',8000) httpd = HTTPServer(server_address,MyServer) httpd.serve_forever()
The program for implementing simple webserver is executed successfully.

