Servertec   SSI Tester
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Samples
Hello World
Display Arguments
Display Headers
URL Redirect
CGI Tester
SSI Tester
Servlet Tag
Servlet Chaining
Log
Cookie Counter
Cookie Tester
Protected Page
List Employees
Connection Pool
Simple Form
Dump Form
Page Counter
File Upload
Session Tester
Context Tester
Sales
Legal
Feedback

 

This example tests Server Side Includes (SSI) support. It first displays a form allowing GET/POST to be tested and once Submit Query is press it dumps all SSI variables, display a file's timestamp and size, displays the captured output of a simple shell command and changes and tests configuration parameters.

Before exec tests can be used the following changes must be made:

  • Shell Access must be enabled in the iServer Administration - Server form.

  • In Windows NT change the Servlet definition for SSIncludeServlet as follows:

    Alias: SSIncludeServlet
    Class File: stec.iws.SSIncludeServlet
    Parameter: bindir=./
    Parameter: exec=c:\\winnt\\system32\\cmd.exe /c

  • In Windows 9x change the Servlet definition for SSIncludeServlet as follows:

    Alias: SSIncludeServlet
    Class File: stec.iws.SSIncludeServlet
    Parameter: bindir=./
    Parameter: exec=c:\\command.com /c

  • In Lixux/Unix change the Servlet definition for SSIncludeServlet as follows:

    Alias: SSIncludeServlet
    Class File: stec.iws.SSIncludeServlet
    Parameter: bindir=./
    Parameter: exec=/bin/sh

In Windows NT QUERY_STRING and QUERY_STRING_UNESCAPED will display The name specified is not recognized as an internal or external command, operable program or batch file. for each & contained in the QUERY_STRING.

This example uses ssitesterform.shtml , ssitester.shtml and include.inc.

[ view source ] [ run ]

 top of page
 Built with iScript Copyright © 1997-2000 Servertec. All rights reserved.
Last Modified: Thu Aug 10 13:07:08 EDT 2000