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

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