#!/bin/sh
echo "Content-type: text/html"
echo
{
echo "setenv REQUEST_METHOD GET"
echo "setenv REMOTE_ADDR $REMOTE_ADDR"
echo "setenv QUERY_STRING \"$QUERY_STRING\""
echo "setenv HTTP_X_FORWARDED_FOR $HTTP_X_FORWARDED_FOR"
echo "setenv HTTP_COOKIE \"$HTTP_COOKIE\""
} > send.txt
# IP of µü®w
# if [ `expr $REMOTE_ADDR \>= 140.109.19.100 \& $REMOTE_ADDR \<= 140.109.19.250` = 1 ]; then
#./kiwi1.cgi /cgi-bin/ghy #| tee receive.txt 2> error
# else
./kiwi1.cgi . # | tee receive.txt
# fi