[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><!--#include virtual="shtml_include1.shtml"></tt>ed ...</nobr> <p> <table bgcolor="99ccff" cellpadding="10" cellspacing="0" border="1"> <tr><td> <!--#include virtual="shtml_include1.shtml" --> </td></tr> </table> <h2> "#echos": </h2> <table cellpadding="5" cellspacing="0" border="1"> <tr><td>"<!--#echo http_accept -->"</td> <td>browser accepted content types</td></tr> <tr><td>"<!--#echo http_host -->"</td> <td>request host and port destination</td></tr> <tr><td>"<!--#echo http_referer -->"</td> <td>referring document</td></tr> <tr><td>"<!--#echo http_user_agent -->"</td> <td>browser identification string</td></tr> <tr><td>"<!--#echo path_info -->"</td> <td>request path</td></tr> <tr><td>"<!--#echo path_translated -->"</td> <td>current document VMS file name</td></tr> <tr><td>"<!--#echo query_string -->"</td> <td>request query string</td></tr> <tr><td>"<!--#echo remote_addr -->"</td> <td>browser host address</td></tr> <tr><td>"<!--#echo remote_host -->"</td> <td>browser host name</td></tr> <tr><td>"<!--#echo remote_user -->"</td> <td>authenticated user</td></tr> <tr><td>"<!--#echo server_name -->"</td> <td>server host name</td></tr> <tr><td>"<!--#echo server_port -->"</td> <td>server host port</td></tr> <tr><td>"<!--#echo request_protocol -->"</td> <td>Request HTTP protocol version</td></tr> <tr><td>"<!--#echo server_protocol -->"</td> <td>Server HTTP protocol version</td></tr> <tr><td>"<!--#echo server_software -->"</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><!--#if var={request_protocol} eqs="HTTP/2" --> <u>HTTP/2</u> <!--#else--> <u>HTTP/1.<i>n</i></u> <!--#endif--> </pre> <h2> Let's include a file using: </h2> <pre><!--#include file="wasd_root:[exercise]shtml_include1.html" --></pre> <!--#include file="wasd_root:[exercise]shtml_include1.html" --> <h2> That same file between <LISTING></LISTING></tt> tags: </h2> <listing><!--#include virtual="shtml_include1.html" --></listing> <h2> The same file, this time using a VIRTUAL specification:</h2> <pre><!--#include virtual="../exercise/shtml_include1.html" --></pre> <!--#include virtual="../exercise/shtml_include1.html" --> <h2> Size of the file: </h2> <pre><!--#fsize file="wasd_root:[exercise]shtml_include1.html" --></pre> We can determined the size of the file ... <!--#fsize file="wasd_root:[exercise]shtml_include1.html" --> <h2> Creation date: </h2> <pre><!--#fcreated file="wasd_root:[exercise]shtml_include1.html" --></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><!--#flastmod file="wasd_root:[exercise]shtml_include1.html" --></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><!--#dir virtual="*.*" --></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><!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" --></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><!--#dcl say="f$time()" --></pre> <!--#dcl say="f$time()" --> <pre><!--#dcl say="4+5" --></pre> <!--#dcl say="4+5" --> <pre><!--#dcl say="\"<I>hello</I>\"" --></pre> <!--#dcl say="\"<I>hello</I>\"" type="text/html" --> <pre><!--#dcl dir="wasd_root:[exercise]" --></pre> <listing><!--#dcl dir="wasd_root:[exercise]" --></listing> <pre><!--#dcl show="process" --></pre> <listing><!--#dcl show="process" --></listing> <pre><!--#dcl show="users/node" --></pre> <listing><!--#dcl show="users/node" --></listing> <h2> Now some <b>privileged</b> DCL commands:</h2> <pre><!--#dcl exec="show sym www_*" --></pre> <listing><!--#dcl exec="show sym www_*" --></listing> <pre><!--#exec cmd="show sym *" --></pre> <listing><!--#exec cmd="show sym *" --></listing> </ul> <p><hr size="3" width="100%" noshade> <h2> Look at the source file: </h2> <listing><!--#include virtual="shtml.shtml" type="text/plain" --></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><!--#includ e virtual="shtml.shtml" type="text/plain" --></listing> <!--#includ e virtual="shtml.shtml" type="text/plain" --> </html>