CGI

CGI

ri

 ------------------------------------------------------------- Class: CGI
      CGI class. See documentation for the file cgi.rb for an overview of
      the CGI protocol.
 
 
 Introduction
 ------------
      CGI is a large class, providing several categories of methods, many
      of which are mixed in from other modules. Some of the documentation
      is in this class, some in the modules CGI::QueryExtension and
      CGI::HtmlExtension. See CGI::Cookie for specific information on
      handling cookies, and cgi/session.rb (CGI::Session) for information
      on sessions.
 
      For queries, CGI provides methods to get at environmental
      variables, parameters, cookies, and multipart request data. For
      responses, CGI provides methods for writing output and generating
      HTML.
 
      Read on for more details. Examples are provided at the bottom.
 
 
 Queries
 -------
      The CGI class dynamically mixes in parameter and cookie-parsing
      functionality, environmental variable access, and support for
      parsing multipart requests (including uploaded files) from the
      CGI::QueryExtension module.
 
      Environmental Variables
      The standard CGI environmental variables are available as read-only
      attributes of a CGI object. The following is a list of these
      variables:
 
        AUTH_TYPE               HTTP_HOST          REMOTE_IDENT
        CONTENT_LENGTH          HTTP_NEGOTIATE     REMOTE_USER
        CONTENT_TYPE            HTTP_PRAGMA        REQUEST_METHOD
        GATEWAY_INTERFACE       HTTP_REFERER       SCRIPT_NAME
        HTTP_ACCEPT             HTTP_USER_AGENT    SERVER_NAME
        HTTP_ACCEPT_CHARSET     PATH_INFO          SERVER_PORT
        HTTP_ACCEPT_ENCODING    PATH_TRANSLATED    SERVER_PROTOCOL
        HTTP_ACCEPT_LANGUAGE    QUERY_STRING       SERVER_SOFTWARE
        HTTP_CACHE_CONTROL      REMOTE_ADDR
        HTTP_FROM               REMOTE_HOST
 
      For each of these variables, there is a corresponding attribute
      with the same name, except all lower case and without a preceding
      HTTP_.  content_length  and  server_port  are integers
		

* はてなダイアリーキーワード:CGI