summaryrefslogtreecommitdiff
path: root/server/Readme.org
blob: 124215941c170d8da319f2b64c80312f30f9c9c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#+TITLE: Simple Server that accepts survey answers

Run with:
#+BEGIN_SRC
guile server.scm
#+END_SRC

Will listen to localhost:8080, and accept files sent via POST with
mimetypes of either ~text/plain~ (which will be appended to a single
file in the working directory) or ~text/age~ (which will be kept as a
single file).

Expects a custom header ~X-Survey~ in these requests to know which survey
the answer belongs to.