Last Modified
2014-07-31 09:05:34 -0700
Requires
  • cgi/core
  • cgi/cookie
  • cgi/util

Description

cgi.rb - cgi support library

Copyright (C) 2000 Network Applied Communication Laboratory, Inc.

Copyright (C) 2000 Information-technology Promotion Agency, Japan

Author: Wakou Aoyama <wakou@ruby-lang.org>

Documentation: Wakou Aoyama (RDoc’d and embellished by William Webber)

Overview

The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP request from a web server to a standalone program, and returning the output to the web browser. Basically, a CGI program is called with the parameters of the request passed in either in the environment (GET) or via $stdin (POST), and everything it prints to $stdout is returned to the client.

This file holds the CGI class. This class provides functionality for retrieving HTTP request parameters, managing cookies, and generating HTML output. See the class documentation for more details and examples of use.

The file cgi/session.rb provides session management functionality; see that file for more details.

See www.w3.org/CGI/ for more information on the CGI protocol.

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus