Common Gateway Interface
In brief, an HTTP POST request from the client will send the CGI program HTML form data via
In 1993 the
Historically CGI scripts were often written using the C language. RFC 3875 "The Common Gateway Interface (CGI)" partially defines CGI using C, as in saying that environment variables "are accessed by the C library routine getenv() or variable environ".
The name CGI comes from the early days of the web, where users wanted to connect databases to their web servers. The CGI was a program executed by the server that provided a common "gateway" between the web server and the database.