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

Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guideβ€”522659-001
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.
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
Note. CGI requests and replies can be of any length. For long requests and replies, the httpd
process and the process labeled β€œPathway CGI main” exchange multiple Serverclass_send
and reply messages.
CGI Standard Input
& Environment
Variables
Standard Output
CDT003.CDD
Web Client
Other
CGI
Server
Database
iTP Secure
WebServer