eris/tests/default/cgi/set.cgi

10 lines
250 B
Plaintext
Raw Normal View History

2012-02-16 12:05:02 -07:00
#! /bin/sh
echo Content-Type: text/plain
echo
set | sort | grep 'GATEWAY\|SERVER\|REQUEST\|SCRIPT\|REMOTE\|HTTP\|AUTH\|CONTENT\|QUERY\|PATH_'
if [ -n "$CONTENT_TYPE" ]; then
echo -n "Form data: "
dd bs=1 count=$CONTENT_LENGTH 2>/dev/null
fi