From e2ca5eb8dde31ea31b7fa1014d087829e4146bac Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Tue, 16 Nov 2021 03:35:13 +0100
Subject: Basic functionality is finally there

We can:
* skip HTTP status header
* read the HTTP headers
* find a boundary of multipart form data and if there was a boundary
  * parse further 'chunks', separated by this boundary, each with a HTTP
    header

All of that was tested with text fields and binary data. This server
implementation is insecure. Please do not use it for anything connected
to the internet. It is simple though and can serve local daemons.

TODO: callback to a parser function.
---
 Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 Makefile

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1f8a372
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+
+test: main
+	./main
+
+main: clean
+
+clean:
+	rm -f ./main
+
+%:
+	$(CC) -pthread -g -o $@ $@.c
+
-- 
cgit v1.2.3