CGI
From DesigningPatterns
General Characteristics
- When a web server receives a request for a CGI script, it will fork and exec the script.
- GET requests communicate parameters via the
QUERY_STRINGenvironment variable; for example,http://www.tony.com/index.rb?name=tony&profession=programmerwould result inQUERY_STRING=name=tony&profession=programmer. - Forking a new server instance for each CGI invocation is expensive, so there are some techniques for making this more efficient, including:
