Skip to content

Instantly share code, notes, and snippets.

@HarryCutts
HarryCutts / ABOUT.md
Created November 17, 2018 00:04 — forked from laobubu/ABOUT.md
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a fork of [laobubu's Pico HTTP server][laobubu-gist]. The only change is a fix to the POST payload reading code.

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913