From b22d6109af8ebd2b4d5c905134b7e4347b43ce15 Mon Sep 17 00:00:00 2001 From: saranya Date: Fri, 30 May 2025 13:42:37 +0530 Subject: [PATCH] Update README.md --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1817bc0b..e14c5a05 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,51 @@ Serving the HTML pages. ## Step 5: Testing the webserver. -# PROGRAM: +# PROGRAM:from http.server import HTTPServer,BaseHTTPRequestHandler + +content=''' + + + System Configuration + + +
+

SYSTEM CONFIGURATION

+
+

System Configuration

+
    +
  • Processor: Intel Core i7-1360P (13th Gen)
  • +
  • Operating System: Windows 11 Pro
  • +
  • Memory (RAM): 16GB DDR4
  • +
  • Storage: 512GB SSD
  • +
  • Graphics: Integrated Intel Iris Xe Graphics
  • +
  • Display: 16" WUXGA (1920x1200), Anti-glare
  • +
  • Battery: 57Wh, Up to 8 hours
  • +
  • Weight: Approx. 1.7 kg (3.7 lbs)
  • +
  • Ports: USB-C, USB 3.2, HDMI, Audio Combo Jack, Ethernet
  • +
  • Connectivity: Wi-Fi 6, Bluetooth 5.2
  • +
+
+
+ + +''' + +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() # OUTPUT: +![image](https://github.com/user-attachments/assets/8ece7dcd-1215-4bb3-8483-fe0f09c5fadf) +![image](https://github.com/user-attachments/assets/ecdbbf21-7d86-449e-b093-3f84d3089d92) + # RESULT: The program for implementing simple webserver is executed successfully.