CGI (Common Gateway Interface) is a standard for running external programs from a World Wide Web HTTP server.
CGI specifies how to pass arguments to the executing program as part of the HTTP request.
It also defines a set of environment variables.
Commonly, the program will generate some HTML pages which will be passed back to the browser.
For the previous interface, the following CGI script ListCourses.cgi is activated once a button is clicked:
These statements are the minimum, but they work so far.
We may need to add more statements later if necessary.
The last statement calls the CGI Perl script, ListCourses.pl .
Note that
“Internal Server Error” will be issued if the Perl script does not include either one of the following two commands: