1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/test-server/lws-cgi-test.sh
Andy Green 494418abac add explicit parent child wsi relationships
wsi can have a full tree relationship with each other using
linked lists.  closing the parent ensures the children are
closed first.

Convert cgi to use this instead of his cgi-specific sub-wsi
management.

Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-02 18:57:41 +08:00

18 lines
237 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\""
else
cat /proc/meminfo
fi
echo "done"
exit 0