Skip to content

A web server built in C. The goal is to be able to respond to basic HTTP requests and send a response. This server MUST NOT be used for any serious use-case, it is only built for educational purposes.

Notifications You must be signed in to change notification settings

pprotas/c-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Server

An implementation of a HTTP web server in C.

Caution

Not intended for actual use. Only intended for educational purposes.

I use this repo to learn a bit about the C programming language. I also wanted to learn a bit about web servers and the HTTP/1.1 protocol as described in RFC 7230.

Features

  • Listen for requests on port 8080
  • Save a string to memory using a POST request
  • Send a response

That's it :)

Goals

  • Listen for requests and write a response
  • Actually parse the HTTP headers
  • Respond in different ways depending on the route or HTTP method (GET/POST)

About

A web server built in C. The goal is to be able to respond to basic HTTP requests and send a response. This server MUST NOT be used for any serious use-case, it is only built for educational purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published