Pre-Test of Variables

Hello:

Test of Variables

The following work, and produce nt-content: DATE_LOCAL - Current date and time in the local time zone.
Wednesday January 14 2026


DATE_GMT - Current date and time in GMT (Greenwich Mean Time).
Wednesday January 14 2026


DOCUMENT_NAME - The current filename.
C:\Inetpub\vhosts\jonathanking.org\httpdocs\test-vars.html


All of the CGI environment variables are also available to SSI
The header lines received from the client, if any, are placed into the environment with the prefix HTTP_ followed by the header name. Any '-' characters in the header name are replaced by '_'.
HTTP_ACCEPT - The MIME types which the client will accept, as given by HTTP headers. Other protocols may need to get this information from elsewhere. Each item in this list should be separated by commas as per the HTTP spec.


Format: type/subtype, type/subtype
*/*


HTTP_ACCEPT_ENCODING - (?)
gzip, br, zstd, deflate


HTTP_ACCEPT_LANGUAGE - Lists the human languages acceptable to the client e.g. 'en-gb' is English (British).
Variable 'HTTP_ACCEPT_LANGUAGE' cannot be found



HTTP_CONNECTION - (?).
close


HTTP_HOST - (?) Name of the requesting server.
squash.1gainesville.com


HTTP_REFERER - URL of the page from which a link to the current document was followed.
Variable 'HTTP_REFERER' cannot be found



HTTP_USER_AGENT - The browser the client is using to send the request. General format: software/version library/version.
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


CONTENT_LENGTH - The length of the said content as given by the client.
0 The following environment variables are not request-specific and are set for all requests:


PATH - (?) The active PATH on the server.
Variable 'PATH' cannot be found



SCRIPT_FILENAME - The full path on the server to the requested script. i.e. SCRIPT_NAME plus the server path. C:\Inetpub\vhosts\jonathanking.org\httpdocs\test-vars.html



SERVER_ADDR - The server's DNS address. 51.89.173.18



SERVER_ADMIN - The server administrator's email address. Variable 'SERVER_ADMIN' cannot be found




SERVER_NAME - The server's hostname, DNS alias, or IP address as it would appear in self-referencing URLs. squash.1gainesville.com



SERVER_PORT - The port number to which the request was sent. 443


SERVER_SOFTWARE - The name and version of the information server software answering the request (and running the gateway). Format: name/version Microsoft-IIS/10.0



UNIQUE_ID - (?) Serial no. of the server?
Microsoft-IIS/10.0


GATEWAY_INTERFACE - The revision of the CGI specification to which this server complies. Format: CGI/revision
CGI/1.1


SERVER_PROTOCOL - The name and revision of the information protcol this request came in with. Format: protocol/revision
HTTP/1.1


REQUEST_METHOD - The method with which the request was made. For HTTP, this is GET, HEAD, POST, etc.
GET


REQUEST_URI - The full URL of the request (including the query string).
/test-vars.html


SCRIPT_NAME - A virtual path to the script being executed, used for self-referencing URLs.
/test-vars.html