home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13g.zip / TSTHTTPD.SHT < prev    next >
Text File  |  1999-05-31  |  3KB  |  99 lines

  1. <html> <head>        
  2. <meta name="description" content="Demonstrate SRE-http's support for NCSA
  3. HTTPd style server-side includes">
  4.    
  5. <title> Demonstration of HTTPD includes  </title> </head>
  6.  
  7. <body bgcolor="#b5c8a2">        
  8. <center>  
  9. <table border=0><th> </th> <th> </th> <tr>
  10. <td rowspan=2> <IMG SRC="/imgs/srefiltr.gif" ALIGN="MIDDLE" ALT="SRE-http" > </td>
  11. <td><h1>The SRE-http For GoServe Web Server </h1> </td>
  12. <tr>  
  13. <td align=center> <h2> Demonstration of HTTPD server side includes </h2> </td>
  14. </table> </center>
  15.  <br>
  16. <hr width=40%>
  17.  
  18. <!-- #config sizefmt="abbrev" -->
  19. <!-- #config timefmt="%A , %c  (%r) ==is %j day of year, %w day in %W week of %Y  -->
  20. <!-- #config errmsg=" Sample error message " -->
  21.  
  22. <h2>some errors </h2> 
  23. Bad include yields this: <!-- #include virtual="foo.goo" --><BR>
  24. <br>Bad fsize yields this:<!-- #fsize file="atsthttpd.htm" -->
  25. <br>Bad flastmod yields this:<!-- #flastmod file="atsthttpd.htm" -->
  26. <h2> include samples/intro.doc (using VIRTUAL=)</h2>
  27. <pre>
  28.  
  29. <!-- #set var="TESTFILE" value="samples/intro.doc" -->  
  30.  
  31. <!-- #include virtual="samples/intro.doc" -->  
  32. </pre>  
  33. <p> Size and date of intro.doc 
  34. (<em>using  #SET variable TESTFILE="samples/intro.doc")</em>) :  
  35.  
  36. <!-- #fsize virtual="$testfile" -->
  37. <!-- #flastmod virtual="$testfile" -->  
  38.  
  39. <h2> Echo vars </h2>
  40. Note: this document uses a timefmt of : <code>  "%A , %c (%r) == is %j day of year, %w day in %W week  of %Y </code> <br>
  41.  
  42. Doc name: <!-- #echo var="DOCUMENT_NAME" --><BR>
  43.   
  44. Doc Uri: <!-- #echo var="DOCUMENT_URI" --><BR>
  45.  
  46. Date Local:<!-- #echo var="DATE_LOCAL" --><BR>
  47.  
  48. Date GMT: <!-- #echo var="DATE_GMT" --><BR> 
  49.  
  50. Last Mod: <!-- #echo var="LAST_MODIFIED" --><BR>
  51.  
  52. Server software: <!-- #echo var="SERVER_SOFTWARE" --><BR>
  53.  
  54. Server name: <!-- #echo var="SERVER_NAME" --><BR>
  55.  
  56. Gateway Interface: <!-- #echo var="GATEWAY_INTERFACE" --><BR>
  57.  
  58. Server Protocol: <!-- #echo var="SERVER_PROTOCOL" --><BR>
  59.  
  60. Server Port: <!-- #echo var="SERVER_PORT" --><BR>
  61.  
  62. Request method: <!-- #echo var="REQUEST_METHOD" --><BR>
  63.  
  64. Path info: <!-- #echo var="PATH_INFO" --><BR>
  65.  
  66. Path Translated: <!-- #echo var="PATH_TRANSLATED" --><BR>
  67.  
  68. Script name: <!-- #echo var="SCRIPT_NAME" --><BR>
  69.  
  70. Query String: <!-- #echo var="QUERY_STRING" --><BR>
  71.  
  72. Remote addr: <!-- #echo var="REMOTE_ADDR" --><BR>
  73.  
  74. Auth type: <!-- #echo var="AUTH_TYPE"  --><BR>
  75.  
  76. Auth name: <!-- #echo var="AUTH_NAME" --><BR>
  77.  
  78. Remote Ident: <!-- #echo var="REMOTE_IDENT" --><BR>
  79.  
  80. Content type: <!-- #echo var="CONTENT_TYPE" --><BR>
  81.  
  82. Content Length: <!-- #echo var="CONTENT_LENGTH" --><BR>
  83.  
  84. Http accept: <!-- #echo var="HTTP_ACCEPT" --><BR>
  85.  
  86. Http user_agent: <!-- #echo var="HTTP_USER-AGENT" --><BR>
  87.  
  88. Http Referer: <!-- #echo var="HTTP_REFERER" --><BR>
  89.  
  90. <br>
  91. <h2> Exec sample (using jcount?index.htm) </h2>
  92. <!-- #exec CMD=jcount?index.htm -->
  93.  
  94.  
  95. <p>
  96. Do you want to see a demo of the <a href="iftest.sht">XSSI conditional includes</a>?
  97. </body> </html>
  98.  
  99.