3.1. The CGI Environment
CGI establishes a particular environment in which CGI scripts
operate. This environment includes such things as what current
working directory the script starts in, what variables are preset for
it, where the standard file handles are directed, and so on. In
return, CGI requires that scripts be responsible for defining the
content of the HTTP response and at least a minimal set of HTTP
headers.