Type

Description

Identifies the Web server you are running.

Applies to

PSServerClass object

Syntax

psServer.Type( )

Returns

String

Usage

At runtime, Type gets the name of the Web server software from the SERVER_SOFTWARE server environment variable.

Examples

Example 1

The following example tests to see which Web server is running and performs platform-specific logic that varies depending on the outcome of the test:

servertype = psServer.Type( );
if (servertype == "Microsoft-PWS") {
// Perform platform-specific logic
}

if (servertype == "Apache Tomcat") {
// Perform platform-specific logic
}

if (servertype == "Jaguar Server") {
// Perform platform-specific logic
}