(Back to Karl Fogel's home page.)
12493

This page exists solely to test what one can do with server-side includes, and possibly to serve as a reference. Try visiting this page as http://www.red-bean.com/~kfogel/shtml.shtml?XXX and looking at the value of the environment variable REQUEST_URI below -- you will see that the "XXX" has been passed along just as one would expect.

Environment
===============================================
   SERVER_ADMIN [no address given]
   HTTPS on
   HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
   PWD /srv/www/red-bean/kfogel
   DOCUMENT_NAME shtml.shtml
   SCRIPT_FILENAME /srv/www/red-bean/kfogel/shtml.shtml
   SERVER_PORT 443
   USER_NAME 
   CONTEXT_PREFIX 
   DOCUMENT_URI /kfogel/shtml.shtml
   HTTP_HOST www.red-bean.com
   REMOTE_ADDR 216.73.216.154
   DOCUMENT_ARGS 
   REQUEST_URI /kfogel/shtml.shtml
   HTTP_ACCEPT */*
   CONTEXT_DOCUMENT_ROOT /srv/www/red-bean
   QUERY_STRING 
   HTTP_REFERER http://www.red-bean.com/kfogel/shtml.shtml
   SERVER_SIGNATURE 
Apache/2.4.66 (Debian) Server at www.red-bean.com Port 443
SCRIPT_NAME /kfogel/shtml.shtml SERVER_NAME www.red-bean.com DOCUMENT_ROOT /srv/www/red-bean LAST_MODIFIED SERVER_SOFTWARE Apache/2.4.66 (Debian) PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin SERVER_PROTOCOL HTTP/1.1 DATE_GMT HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) DATE_LOCAL REQUEST_SCHEME https REQUEST_METHOD GET GATEWAY_INTERFACE CGI/1.1 REMOTE_PORT 12860 SERVER_ADDR 45.79.25.59 SSL_TLS_SNI www.red-bean.com Command line arguments =============================================== TestArg1 TestArg2 TestArg3

The relevant perl code and the shtml source of this file are below.

-------------------------------------------------------------------------------
First the code, shtml.cgi:
-------------------------------------------------------------------------------





-------------------------------------------------------------------------------
And here is shtml.shtml itself (please ignore the spurious initial <plaintext>)
-------------------------------------------------------------------------------

<plaintext>