Sharedwww / cgi-bin / test-cgiOpen in CoCalc
Author: William A. Stein
1
#!/bin/sh
2
3
# disable filename globbing
4
set -f
5
6
echo Content-type: text/plain
7
echo
8
9
echo CGI/1.0 test script report:
10
echo
11
12
echo argc is $#. argv is "$*".
13
echo
14
15
echo SERVER_SOFTWARE = $SERVER_SOFTWARE
16
echo SERVER_NAME = $SERVER_NAME
17
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
18
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
19
echo SERVER_PORT = $SERVER_PORT
20
echo REQUEST_METHOD = $REQUEST_METHOD
21
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
22
echo PATH_INFO = "$PATH_INFO"
23
echo PATH_TRANSLATED = "$PATH_TRANSLATED"
24
echo SCRIPT_NAME = "$SCRIPT_NAME"
25
echo QUERY_STRING = "$QUERY_STRING"
26
echo REMOTE_HOST = $REMOTE_HOST
27
echo REMOTE_ADDR = $REMOTE_ADDR
28
echo REMOTE_USER = $REMOTE_USER
29
echo AUTH_TYPE = $AUTH_TYPE
30
echo CONTENT_TYPE = $CONTENT_TYPE
31
echo CONTENT_LENGTH = $CONTENT_LENGTH
32