Basic HTML version of Foils prepared May 3 97

Foil 35 Common Gateway Interface (CGI) - an introduction

From Introduction to Architecture of World Wide Web Professional Web Certificate -- April - August 97. by Nancy J. McCracken


CGI is an interface for running programs on the server at the request of the client.
The client look-and-feel for accessing CGI programs is identical to conventional static HTML, but the server side implementation is different. When the user clicks on a CGI link, the server calls the corresponding process and returns its output, not the data/file/code associated with the process.
Typical Applications
  • Support for dynamic generation of HTML documents, such as on-the-fly conversions from other formats.
  • Interfacing with other (non-HTTP) remote services such as databases (WAIS, RDMS), video-on-demand, simulations, etc.
  • Support for the two-way interactivity between clients and servers ( to be achieved by building some intelligence and multiple choice/response capabilities into the CGI programs)
  • Interface to and integration with Forms/GUI area of HTML - submitted forms are handled by suitable CGI processes.
Look at a simple example of an HTML form with its CGI Perl program.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998