CGI

The Common Gateway Interface, an old standard for a web server to run a program for each request and send the program's printed output back as the page.

In more detail

A CGI script prints a Content-type header line, a blank line and then HTML. Starting a new process per request is slow, so modern Python sites use frameworks such as Django or Flask instead. The course uses CGI because it shows the whole round trip with nothing hidden.

Example

print("Content-type: text/html\n")

Related terms

Taught in

References