24-10-2024
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></table>
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.
| Configuration | Description |
|---|---|
| Processor | 13th intel(R) core(TM) i5-1335U, 1300Mhz, 10 Core(s), 12 Logical Processor |
| Storage(HDD/SSD) | SAMSUNG MZAL4512HBLU-00BL1 |
| Memory | 8.5 GB |
| Graphics Card | Intel(R) Iris(R) Xe Graphics , NVIDIA GeForce MX550 |
| Operating System | Edition:Windows , Version:22H2 , OS build:22621.4169 |
| RAM | 16.0 GB |
