A small HTTP server built from scratch in C#. The project uses TcpListener to demonstrate how HTTP requests can be read, parsed, and answered without ASP.NET or other web frameworks.
The server runs locally at http://127.0.0.1:13000 and includes small examples of routing, HTML pages, form handling, and file uploads.
- Handles
GETrequests and selectedPOSTrequests - Routes to a home page, about page, height form, and upload page
- Parses HTTP headers and request bodies manually
- Accepts
multipart/form-dataand saves uploaded files inuploads/ - Returns a simple 404 page for unknown routes
The project requires the .NET 10 SDK.
dotnet runThen open http://127.0.0.1:13000 in your browser.
| Route | Method | Description |
|---|---|---|
/ |
GET | Home page |
/about |
GET | About page |
/height |
GET / POST | Form that displays the submitted height |
/upload |
GET / POST | File upload |
This is a learning project and is not intended for production use.