Skip to content

About

HTTP server in C. No frameworks, No libraries

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP server in C. No frameworks, No libraries

Compile:

gcc -o server server.c
./server

You should see:

Server running on http://localhost:8080

Now open your browser and go to:

  • http://localhost:8080/ - You should see "Hello from my C server!"
  • http://localhost:8080/about - Should show the about page
  • http://localhost:8080/anything-else - Should return a 404

You can also test with curl:

curl -v http://localhost:8080/

About

HTTP server in C. No frameworks, No libraries

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages