Variables-R-Us    

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.58 (FreeBSD) OpenSSL/1.1.1t-freebsd
SERVER_NAME = www.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 = 54.225.35.224
AUTH_TYPE = (none)
REMOTE_USER = (none)
REMOTE_IDENT = (none)
CONTENT_TYPE = (none)
CONTENT_LENGTH = (none)
HTTP_ACCEPT = */*
HTTP_USER_AGENT = claudebot
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 = Friday, 29-Mar-2024 02:07:17 UTC
DATE_GMT = Friday, 29-Mar-2024 02:07:17 GMT
LAST_MODIFIED = Saturday, 07-Mar-1998 09:42:29 UTC

Documentation

XSSI Environment Variables

printenv: HTTP_ACCEPT=*/* HTTP_USER_AGENT=claudebot HTTP_HOST=www.slack.net PATH=/sbin:/bin:/usr/sbin:/usr/bin LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib SERVER_SIGNATURE= SERVER_SOFTWARE=Apache/2.4.58 (FreeBSD) OpenSSL/1.1.1t-freebsd SERVER_NAME=www.slack.net SERVER_ADDR=148.251.208.18 SERVER_PORT=80 REMOTE_ADDR=54.225.35.224 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=58694 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=Friday, 29-Mar-2024 02:07:17 UTC DATE_GMT=Friday, 29-Mar-2024 02:07:17 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>