[prev] [index] [next]

CGI  (Common Gateway Interface)


[Diagram:Pic/cgi.png]

Data is passed as name=value pairs   (all values are strings).

Application outputs (normally) HTML, which server passes to client.

For HTML documents, header is   Content-type: text/html

Header can be any MIME-type (e.g. text/html,   image/gif, ...)