Common gateway interface (CGI): Difference between revisions

From Computer Science Wiki
No edit summary
No edit summary
Line 3: Line 3:
In computing, Common Gateway Interface (CGI) offers a standard protocol for web servers to execute programs that execute like Console applications (also called Command-line interface programs) running on a server that generates web pages dynamically. Such programs are known as CGI scripts or simply as CGIs. The specifics of how the script is executed by the server are determined by the server. In the common case, a CGI script executes at the time a request is made and generates HTML.<ref>https://en.wikipedia.org/wiki/Common_Gateway_Interface#See_also</ref>
In computing, Common Gateway Interface (CGI) offers a standard protocol for web servers to execute programs that execute like Console applications (also called Command-line interface programs) running on a server that generates web pages dynamically. Such programs are known as CGI scripts or simply as CGIs. The specifics of how the script is executed by the server are determined by the server. In the common case, a CGI script executes at the time a request is made and generates HTML.<ref>https://en.wikipedia.org/wiki/Common_Gateway_Interface#See_also</ref>


== Real world, practical advice ==
In the past we used cgi to create dynamic webpages. We needed a way to run perl or shell scripts. A web client would send a request via cgi and the webserver would process the script and return the results of the script. With the rise of purpose-built scripting languages, I don't see cgi used often. Real world practical advice: if you are working with a system with cgi-bin you should wonder what requirements are driving the use. Often there are [[Legacy system legacy]] issues you should be aware of.


== Do you understand this? ==
== Do you understand this? ==

Revision as of 07:33, 1 May 2017

Web Science[1]

In computing, Common Gateway Interface (CGI) offers a standard protocol for web servers to execute programs that execute like Console applications (also called Command-line interface programs) running on a server that generates web pages dynamically. Such programs are known as CGI scripts or simply as CGIs. The specifics of how the script is executed by the server are determined by the server. In the common case, a CGI script executes at the time a request is made and generates HTML.[2]


Real world, practical advice[edit]

In the past we used cgi to create dynamic webpages. We needed a way to run perl or shell scripts. A web client would send a request via cgi and the webserver would process the script and return the results of the script. With the rise of purpose-built scripting languages, I don't see cgi used often. Real world practical advice: if you are working with a system with cgi-bin you should wonder what requirements are driving the use. Often there are Legacy system legacy issues you should be aware of.

Do you understand this?[edit]

Describe the function of the common gateway interface (CGI).

Standards[edit]

These standards are used from the IB Computer Science Subject Guide[3]

  • Describe the function of the common gateway interface (CGI).

References[edit]

  1. http://www.flaticon.com/
  2. https://en.wikipedia.org/wiki/Common_Gateway_Interface#See_also
  3. IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.