Common Gateway Interface. For programms located at Internet servers that answer client requests mediated by an (e. g. Apache) web server. Input to these programs comes from URL parameters, environment variables and standard input. Output from CGI programs goes to stdout and is displayed by web browsers. Cookies provide additional - usually session - information.