added t/t-cgi.sh

This commit is contained in:
hyung-hwan 2023-11-20 14:00:05 +09:00
parent 6c8a0d0780
commit 481cf38790

9
t/t-cgi.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
echo -n -e "Content-type: text/plain\r\n\r\n"
echo "REQUEST_METHOD:$REQUEST_METHOD"
echo "REQUEST_URI:$REQUEST_URI"
echo "QUERY_STRING:$QUERY_STRING"
echo "REMOTE_ADDR:$REMOTE_ADDR"
echo "REMOTE_PORT:$REMOTE_PORT"
echo "CONTENT_LENGTH:$CONTENT_LENGTH"