test-cgi revision abbedb998850d9950bc5f5907ca2f6437b0a936e
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe#
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# To permit this cgi, replace # on the first line above with the
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# appropriate #!/path/to/sh shebang, and set this script executable
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# with chmod 755.
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe#
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# Note that it is subject to cross site scripting attacks on MS IE
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# and any other browser which fails to honor RFC2616, so never use
abbedb998850d9950bc5f5907ca2f6437b0a936ewrowe# it in a live server environment, it is provided only for testing.
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding# disable filename globbing
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingset -f
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
d465130a2383063c73545375b4444bcef3cf30f6fieldingecho "Content-type: text/plain; charset=iso-8859-1"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho CGI/1.0 test script report:
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho argc is $#. argv is "$*".
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho
f3220f54126b25e1cf93cc26c17177b7aef850fdfielding
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho SERVER_SOFTWARE = $SERVER_SOFTWARE
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho SERVER_NAME = $SERVER_NAME
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho GATEWAY_INTERFACE = $GATEWAY_INTERFACE
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho SERVER_PROTOCOL = $SERVER_PROTOCOL
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho SERVER_PORT = $SERVER_PORT
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho REQUEST_METHOD = $REQUEST_METHOD
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho HTTP_ACCEPT = "$HTTP_ACCEPT"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho PATH_INFO = "$PATH_INFO"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho PATH_TRANSLATED = "$PATH_TRANSLATED"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho SCRIPT_NAME = "$SCRIPT_NAME"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho QUERY_STRING = "$QUERY_STRING"
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho REMOTE_HOST = $REMOTE_HOST
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho REMOTE_ADDR = $REMOTE_ADDR
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho REMOTE_USER = $REMOTE_USER
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho AUTH_TYPE = $AUTH_TYPE
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho CONTENT_TYPE = $CONTENT_TYPE
f3220f54126b25e1cf93cc26c17177b7aef850fdfieldingecho CONTENT_LENGTH = $CONTENT_LENGTH