A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/computer-networks/common-gateway-interface-cgi/ below:

Common Gateway Interface (CGI) - GeeksforGeeks

Common Gateway Interface (CGI)

Last Updated : 11 Jul, 2025

The Common Gateway Interface (CGI) is a standard that facilitates communication between web servers and external databases or information sources. It acts as middleware, allowing web servers to interact with applications that process data and send back responses. The CGI standard was defined by the World Wide Web Consortium (W3C) and specifies how a program interacts with a Hyper Text Transfer Protocol (https://www.geeksforgeeks.org/computer-networks/understanding-http-using-browsers/) server.

Note:
The cgi library was a Python library that provided a simple interface for writing CGI scripts (scripts that run on a web server). 
This library has been deprecated in favor of more modern and feature-rich alternatives, such as the web framework Django.

Features of CGI:

Perl
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "<html><body>";
print "<h1>Hello, CGI World!</h1>";
print "</body></html>";

Advantages of CGI:

Disadvantages of CGI: 

 Alternatives to CGI:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4