Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 660 Bytes

File metadata and controls

20 lines (14 loc) · 660 Bytes

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)