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

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