JDT |
FREE Downloads |
Common Gateway Interface (CGI) - Part 1 |
|||||
|
Graphical web browsers first appeared on the scene in about 1993, and for a while web users were content to view static web pages, which always displayed the same content each time you visited them. After a while though, people began to expect more from their web experience and one of the results of this was the arrival of dynamic web pages. These days there are plenty of web technologies and languages that allow the user of a web browser to execute a program on the web server, and to thereby receive dynamic as well as static content, but the first to offer this capability was the Common Gateway Interface (CGI) technology. Browsing the World Wide WebThe Web is basically two systems trying to exchange data with each other: the client (web browser) on one side who is normally trying to get data, and the web server on the other side who sends data to the client. The client makes a request for a web page, and then the web server tries to fetch that page from a hard disk and send it to the client. The Uniform Resource Locator (URL)To request a web page a client uses a Uniform Resource Locator (URL), for example, http://www.efghij.com/introduction.htm.
If the web page exists, it is sent from the server to the client; if it doesn't, a 'missing page' error message is displayed in the web browser. Dynamic Web PagesWhen sending a static web page, the server simply needs to locate the required page and then send it to the browser. Sometimes though, this is not enough, and the web server needs to send dynamically-generated content to the web browser. A typical example of this is when data is extracted from a database based on some search criteria entered into the browser. The reason pages like this are known as dynamic web pages is because much of the content displayed on the resultant web page will be different each time the page is sent to the browser. In other words, different searches will generate different content for the web page. Go back to Programming and Web Development Articles home page
|
|