cgi: POSTed content - part of MP-562
[metaproxy-moved-to-github.git] / etc / cgi.sh
index aee19ef..e8efe63 100755 (executable)
@@ -1,8 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 echo "Content-Type: text/plain"
 echo ""
-
-echo "hello, world."
+echo "metaproxy/etc/cgi.sh"
 pwd
 env
+if test $CONTENT_LENGTH; then
+       echo "Echo content of length: $CONTENT_LENGTH:"
+       read -n $CONTENT_LENGTH c
+       echo "$c"
+fi
+