This problem set guides you through building a basic HTTP server from scratch using Python's standard library (primarily the socket module). The goal is to create a server that can handle simple GET requests, parse incoming HTTP requests, and send valid HTTP responses. We'll break it down into "tickets" – small, incremental tasks that build upon each other, simulating a real-world project workflow.
Prerequisites:
- Basic Python knowledge (sockets, strings, file I/O).
- No external libraries are allowed; stick to Python's built-in modules.
- Test your server using tools like
curl(e.g.,curl http://localhost:8080/) or a web browser.