Skip to content

A minimalistic HTTP server written in C, with test tools in python, that handles GET requests, serves files and supports MIME-type detection and logging

Notifications You must be signed in to change notification settings

brick-24/web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimalistic HTTP web-server in C

A minimalistic HTTP server written in C that handles GET requests, serves files and supports MIME-type detection and logging

Features

  • Serve raw contents of files over HTTP GET requests
  • Simple 404 handling
  • MIME type support
  • Requests and Output logging
  • Handling Bad requests

Overview

image

Build and Run

Compile

gcc server.c -o server

Run

./server

Then visit http://localhost:8080/index.html

Example requests

GET /index.html HTTP/1.1
Host: localhost:8080

About

A minimalistic HTTP server written in C, with test tools in python, that handles GET requests, serves files and supports MIME-type detection and logging

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published