A lightweight HTTP web server built from scratch in Python using socket programming. It accepts client connections, processes HTTP requests, and serves static HTML content.
- 🌐 Built using Python sockets
- 📥 Handles HTTP GET requests
- 📄 Serves static HTML pages
- ⚡ Lightweight and easy to understand
- 🚀 No external frameworks
- Python
- Socket Programming
- HTTP
- HTML
web-server/
├── main.py
├── index.html
└── README.md
Clone the repository:
git clone https://github.com/hariom888/web-server.git
cd web-serverRun the server:
python main.pyOpen your browser and visit:
http://localhost:8080
This project helped me understand:
- TCP socket programming
- HTTP request and response handling
- Client-server communication
- Building a basic web server from scratch