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

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