b_book1.gif (162 bytes)Internet

WWW - Common Gateway Interface (CGI)

ntcgi1.gif (7409 bytes) Internet managers can link web servers to back-end applications via the common gateway interface (CGI).

 

The basic process is as follows;

  1. Web browser user clicks a URL containing a request to run a CGI script.
    For example:. From a form like this;
    ntcgi2.gif (3209 bytes)
    The following URL could be generated
    http://v2.com/cgi/data.pl?field.1=Floptical+Bunny&field.2=12+Tui+St&check.1=on&radio.2=on
  2. The web server will send the following to the script. (http://v2.com/cgi/data.pl) - here a Perl script (pl).
  3. The script may call a program that is run on the server that may access for example a database, and returns the data (may be an html form) to the Standard output (STDOUT).
  4. This is then sent back to the browser for display.

b_ref.gif (1385 bytes)(1996, Dec) Gibbs,M
[Rev: 11/05/99] 26/10/98 © 1998-99 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.