Add simple cgi support +:
* read file byte after byte * format code (syslog + err) * move functions in utils.c
This commit is contained in:
parent
332a5cd1d6
commit
470e47a018
10 changed files with 268 additions and 67 deletions
9
tests/var/gemini/cgi-bin/who.cgi
Executable file
9
tests/var/gemini/cgi-bin/who.cgi
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "20 cgi_test"
|
||||
u=""
|
||||
if [ -n "${QUERY_STRING}" ]; then
|
||||
u="$(printf "%s" "${QUERY_STRING}" | cut -d'=' -f2)" #yeah, it's awful..
|
||||
fi
|
||||
|
||||
echo "hello $u"
|
Loading…
Add table
Add a link
Reference in a new issue