Skip to content

Bare-bones HTTP server in C, written to understand how a HTTP server works without frameworks. Work in progress.

Notifications You must be signed in to change notification settings

jackcase04/http-server-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Server

Build

To run this server, clone the repository on a Linux machine. In the project root, simply run:

make

Run

After building, just run:

./a.out

If you wish to remove object and executable files and start over, run:

make clean

TODO

  • Handle concurrent client requests
  • Allow dynamic access to any file in public folder
    • Considering security (path traversal, etc)
  • Strengthen parsing of HTTP request
    • Include parsing headers, etc

About

Bare-bones HTTP server in C, written to understand how a HTTP server works without frameworks. Work in progress.

Resources

Stars

Watchers

Forks