1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-server/lws-cgi-test.sh
Andy Green 6a8099b071 cgi
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00

16 lines
213 B
Bash
Executable file

#!/bin/sh
echo "lwstest script stdout"
>&2 echo "lwstest script stderr"
echo "REQUEST_METHOD=$REQUEST_METHOD"
if [ "$REQUEST_METHOD" = "POST" ] ; then
read line
echo "read=\"$line\""
fi
echo "done"
exit 0