/douzo

A simple HTTP server written in C

Primary LanguageCMIT LicenseMIT

douzo

C/C++ CI
A simple HTTP server written in C

Compiling

$ mkdir bin
$ gcc src/*.c -o bin/douzo -lpthread

Usage

Usage: ./bin/main [-r] [-p port]
        -r : Print http requests
        -p : Use the specified port instead of default value (8080)

Example

$ ./bin/douzo -p 5600 

This will serve the pages that are in current working directory. When the server is up, you can test it by visiting http://localhost:5600/somepage.html in your browser.

TODO

  • Add the possibility to specify the directory to serve (with arguments)
  • Support the other methods (POST, PUT, etc..)
  • Support the other HTTP headers
  • Add a GUI

Disclaimer

I didn't focus on security on this server, so it is NOT for general use !