Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroHTTPServer

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.

Features

  • Handles GET requests and selected POST requests
  • Routes to a home page, about page, height form, and upload page
  • Parses HTTP headers and request bodies manually
  • Accepts multipart/form-data and saves uploaded files in uploads/
  • Returns a simple 404 page for unknown routes

Getting started

The project requires the .NET 10 SDK.

dotnet run

Then open http://127.0.0.1:13000 in your browser.

Routes

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages