[0001]
[0002]
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119]
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131]
[0132]
[0133]
[0134]
[0135]
[0136]
[0137]
[0138]
[0139]
[0140]
[0141]
[0142]
[0143]
[0144]
[0145]
[0146]
[0147]
[0148]
[0149]
[0150]
[0151]
[0152]
[0153]
[0154]
[0155]
[0156]
[0157]
[0158]
[0159]
[0160]
[0161]
[0162]
[0163]
[0164]
[0165]
[0166]
[0167]
[0168]
[0169]
[0170]
[0171]
[0172]
[0173]
[0174]
[0175]
[0176]
[0177]
[0178]
[0179]
[0180]
[0181]
[0182]
[0183]
[0184]
[0185]
[0186]
[0187]
[0188]
[0189]
[0190]
[0191]
[0192]
[0193]
[0194]
[0195]
<!DOCTYPE html>
<!--##config trace=1 -->
<html>
<title>SSI / Pre-Processed HTML</title>
<h1>Server Side Includes<br></h1>
<p><hr size="3" width="100%" noshade>

<!--#config sizefmt="bytes" -->

<p> This is a test document for the <tt>.SHTML</tt> extension files.  This
documents URL is <tt><!--#echo PATH_INFO --></tt> (actual file:
<tt><!--#echo
file_name --></tt>), last modified <!--#echo LAST_MODIFIED -->.

<p>
<table bgcolor="ffff00" cellpadding="10" cellspacing="0" border="1">
<tr><td>
This is the
<!--#accesses ordinal since=" time since " timefmt="%c" -->
that this document has been accessed
(yes that's correct ... the document is used when batch testing the server!)
</td></tr>
</table>

<p> It is possible to include another SSI file. The following blue section has
been
<nobr><tt>&lt;!--#include virtual="shtml_include1.shtml"&gt;</tt>ed ...</nobr>

<p>
<table bgcolor="99ccff" cellpadding="10" cellspacing="0" border="1">
<tr><td>
<!--#include virtual="shtml_include1.shtml" -->
</td></tr>
</table>

<h2> &quot;#echos&quot;: </h2>

<table cellpadding="5" cellspacing="0" border="1">
<tr><td>&quot;<!--#echo http_accept -->&quot;</td>
<td>browser accepted content types</td></tr>
<tr><td>&quot;<!--#echo http_host -->&quot;</td>
<td>request host and port destination</td></tr>
<tr><td>&quot;<!--#echo http_referer -->&quot;</td>
<td>referring document</td></tr>
<tr><td>&quot;<!--#echo http_user_agent -->&quot;</td>
<td>browser identification string</td></tr>
<tr><td>&quot;<!--#echo path_info -->&quot;</td>
<td>request path</td></tr>
<tr><td>&quot;<!--#echo path_translated -->&quot;</td>
<td>current document VMS file name</td></tr>
<tr><td>&quot;<!--#echo query_string -->&quot;</td>
<td>request query string</td></tr>
<tr><td>&quot;<!--#echo remote_addr -->&quot;</td>
<td>browser host address</td></tr>
<tr><td>&quot;<!--#echo remote_host -->&quot;</td>
<td>browser host name</td></tr>
<tr><td>&quot;<!--#echo remote_user -->&quot;</td>
<td>authenticated user</td></tr>
<tr><td>&quot;<!--#echo server_name -->&quot;</td>
<td>server host name</td></tr>
<tr><td>&quot;<!--#echo server_port -->&quot;</td>
<td>server host port</td></tr>
<tr><td>&quot;<!--#echo request_protocol -->&quot;</td>
<td>Request HTTP protocol version</td></tr>
<tr><td>&quot;<!--#echo server_protocol -->&quot;</td>
<td>Server HTTP protocol version</td></tr>
<tr><td>&quot;<!--#echo server_software -->&quot;</td>
<td>server identification string</td></tr>
</table>

<h2> This request has been made via the 
<!--#if var={request_protocol} eqs="HTTP/2" -->
<u>HTTP/2</u>
<!--#else-->
<u>HTTP/1.<i>n</i></u>
<!--#endif-->
protocol</h2>

<pre>&lt;!--#if var={request_protocol} eqs="HTTP/2" --&gt;
&lt;u&gt;HTTP/2&lt;/u&gt;
&lt;!--#else--&gt;
&lt;u&gt;HTTP/1.&lt;i&gt;n&lt;/i&gt;&lt;/u&gt;
&lt;!--#endif--&gt;
</pre>

<h2> Let's include a file using: </h2>
<pre>&lt;!--#include file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
<!--#include file="wasd_root:[exercise]shtml_include1.html" -->

<h2> That same file between &lt;LISTING&gt;&lt;/LISTING&gt;</tt> tags:
</h2>
<listing><!--#include virtual="shtml_include1.html" --></listing>

<h2> The same file, this time using a VIRTUAL specification:</h2>
<pre>&lt;!--#include virtual="../exercise/shtml_include1.html" --&gt;</pre>
<!--#include virtual="../exercise/shtml_include1.html" -->

<h2> Size of the file: </h2>
<pre>&lt;!--#fsize file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the size of the file ...
<!--#fsize file="wasd_root:[exercise]shtml_include1.html" -->

<h2> Creation date: </h2>
<pre>&lt;!--#fcreated file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the creation date/time of the file ...
<!--#fcreated file="wasd_root:[exercise]shtml_include1.html"
fmt="" 
-->

<h2> Last modification date: </h2>
<pre>&lt;!--#flastmod file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the last modification date/time of the file ...
<!--#flastmod
file="wasd_root:[exercise]shtml_include1.html"    
-->

<h2> ``Index of'' this directory:</h2>

<p> (The blue background is just to delineate the extent of the listing)

<pre>&lt;!--#dir virtual="*.*" --&gt;</pre>

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>

<!--#dir virtual="*.*" -->

</td></tr>
</table>

<h2> More controlled ``Index of'' HTML files in this directory:</h2>

<pre>&lt;!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" --&gt;</pre>

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>

<!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" -->

</td></tr>
</table>

<h2> Now some <b>allowed</b> DCL commands:</h2>

<pre>&lt;!--#dcl say="f$time()" --&gt;</pre>
<!--#dcl say="f$time()" -->

<pre>&lt;!--#dcl say="4+5" --&gt;</pre>
<!--#dcl say="4+5" -->

<pre>&lt;!--#dcl say="\"&lt;I&gt;hello&lt;/I&gt;\"" --&gt;</pre>
<!--#dcl say="\"<I>hello</I>\"" type="text/html" -->

<pre>&lt;!--#dcl dir="wasd_root:[exercise]" --&gt;</pre>
<listing><!--#dcl dir="wasd_root:[exercise]" --></listing>

<pre>&lt;!--#dcl show="process" --&gt;</pre>
<listing><!--#dcl show="process" --></listing>

<pre>&lt;!--#dcl show="users/node" --&gt;</pre>
<listing><!--#dcl show="users/node" --></listing>

<h2> Now some <b>privileged</b> DCL commands:</h2>

<pre>&lt;!--#dcl exec="show sym www_*" --&gt;</pre>
<listing><!--#dcl exec="show sym www_*" --></listing>

<pre>&lt;!--#exec cmd="show sym *" --&gt;</pre>
<listing><!--#exec cmd="show sym *" --></listing>

</ul>

<p><hr size="3" width="100%" noshade>

<h2> Look at the source file: </h2>
<listing>&lt;!--#include virtual="shtml.shtml" type="text/plain" --&gt;</listing>
the source of this document follows:

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>
<!--#include virtual="shtml.shtml" type="text/plain" -->
</td></tr>
</table>

<p><hr size="3" width="100%" noshade>

<h2>Finally a broken one: </h2>
<listing>&lt;!--#includ e virtual="shtml.shtml" type="text/plain" --&gt;</listing>

<!--#includ e virtual="shtml.shtml" type="text/plain" -->

</html>