This is a list of SSI environment variables, which include the CGI
set as well. I wrote this to see what the server would give me, and
left it here for future reference.
output of 'ls -ld .' = drwxr-xr-x 6 thundt thundt 224 May 5 2020 .
(This uses the #exec tag, so if that's disabled, it won't work.)
CGI Environment Variables
SERVER_SOFTWARE = Apache/2.4.62 (FreeBSD) OpenSSL/3.0.13
SERVER_NAME = slack.net
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.1
SERVER_PORT = 80
REQUEST_METHOD = GET
PATH_INFO = (none)
PATH_TRANSLATED = (none)
SCRIPT_NAME = /~thundt/cgivars.shtml
QUERY_STRING =
REMOTE_HOST = (none)
REMOTE_ADDR = 18.224.51.49
AUTH_TYPE = (none)
REMOTE_USER = (none)
REMOTE_IDENT = (none)
CONTENT_TYPE = (none)
CONTENT_LENGTH = (none)
HTTP_ACCEPT = */*
HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_REFERER = (none)
ANNOTATION_SERVER = (none)
Documentation
SSI Environment Variables
DOCUMENT_NAME = cgivars.shtml
DOCUMENT_URI = /~thundt/cgivars.shtml
QUERY_STRING_UNESCAPED = (none)
DATE_LOCAL = Tuesday, 24-Dec-2024 01:34:03 UTC
DATE_GMT = Tuesday, 24-Dec-2024 01:34:03 GMT
LAST_MODIFIED = Saturday, 07-Mar-1998 09:42:29 UTC
Documentation
XSSI Environment Variables
printenv: HTTP_ACCEPT=*/*
HTTP_USER_AGENT=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING=gzip, br, zstd, deflate
HTTP_HOST=slack.net
PATH=/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/usr/local/lib
SERVER_SIGNATURE=
SERVER_SOFTWARE=Apache/2.4.62 (FreeBSD) OpenSSL/3.0.13
SERVER_NAME=slack.net
SERVER_ADDR=148.251.208.18
SERVER_PORT=80
REMOTE_ADDR=18.224.51.49
DOCUMENT_ROOT=/usr/local/www/apache24/data
REQUEST_SCHEME=http
CONTEXT_PREFIX=/~thundt
CONTEXT_DOCUMENT_ROOT=/usr/home/thundt/public_html
SERVER_ADMIN=ops@slack.net
SCRIPT_FILENAME=/usr/home/thundt/public_html/cgivars.shtml
REMOTE_PORT=1649
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
QUERY_STRING=
REQUEST_URI=/~thundt/cgivars.shtml
SCRIPT_NAME=/~thundt/cgivars.shtml
DATE_LOCAL=Tuesday, 24-Dec-2024 01:34:03 UTC
DATE_GMT=Tuesday, 24-Dec-2024 01:34:03 GMT
LAST_MODIFIED=Saturday, 07-Mar-1998 09:42:29 UTC
DOCUMENT_URI=/~thundt/cgivars.shtml
DOCUMENT_ARGS=
USER_NAME=thundt
DOCUMENT_NAME=cgivars.shtml
(If you get an error, it didn't work -- XSSI disabled?)
Documentation
(End of list)
© 1997 Thomas Hundt.
All writes reserved.
<thundt@slack.net>