iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)

Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide523346-002
8-2
CGI Support in the iTP Secure WebServer
Environment
CGI Support in the iTP Secure WebServer
Environment
The iTP Secure WebServer offers two CGI execution environments; and both have
advantages over conventional CGI execution. These environments are:
Generic-CGI Server Class
Pathway CGI Server Classes
In addition, the Servlet Server Class (SSC) provides a way of executing Java servlets.
Generic-CGI Server Class
The generic-CGI server class is a NonStop TS/MP server class that launches and
manages user-written Open System Services (OSS) CGI programs that conform to the
NCSA CGI 1.1 specification. A CGI program written for another environment requires
no change to communicate with the generic-CGI server class.
As shown in Figure 8-2 the generic-CGI server class translates the NonStop TS/MP
Pathsend protocol into a standard CGI interface. Your CGI program uses its familiar
stdin and stdout file descriptors and environment variables. The generic-CGI
server class makes it unnecessary for the httpd process to implement polling.
Figure 8-1. CGI Relationships
CGI Standard Input
& Environment
Variables
Standard Output
CDT003.CDD
Web Client
Other
CGI
Server
Database
iTP Secure
WebServer