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

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