|
|
|
|
The problem with plain HTML pages is that they are static, and never change. If we want to do something more dynamic -- for example, show the details of a book which the user specifies -- then we have to do something to cause HTML pages to be generated dynamically. The Common Gateway Interface (CGI) was the first solution to this problem. A Web server that implements CGI recognizes that certain requested resources are special, and redirects the request to a separate program for processing. The program may be written in just about any language: C, C++, Perl, Java, etc. and is dynamically launched by the web server as a result of receiving the request.
The CGI request is typically handled like this:
Note that, to the client, this process is transparent. The client is not aware that a CGI program was involved. So, every time you go to a Web search engine and type in something to search for, the search engine is doing something like this to generate its results dynamically.
|
| The page was last updated February 19, 2008 |