Message::CGI::HTTP - An Object-Oriented HTTP CGI Interface
The Message::CGI::HTTP
module provides an object-oriented
interface for inputs and outputs as defined by CGI specification.
This module is part of manakai.
CONTENT_TYPE
or
HTTP_USER_AGENT
. Otherwise, the result is implementation
dependent. In an environment where meta-variables are supplied
as envirnoment variables, specifying an environment variable
that is not a meta-variable, such as PATH
, results in the
value of that environment variable. However, CGI scripts
SHOULD NOT depend on such behavior.
This method might return undef
when the meta-variable
is not defined or is defined but its value is undef
.
NOTE: Some application might use an environmental variable named 'HTTP_HOME', which might make some confusion with CGI meta variable for HTTP 'Home:' header field. Fortunately, such name of HTTP header field is not intoroduced as far as I know.
This method returns a Message::DOM::DOMStringList
.
$cgi
->get_parameter ($name);When multiple values with same parameter name is specified, the first one is returned in scalar context or an array reference of all values is returned in array context. (Note that query-string is ``earlier'' than entity-body.)
This method returns a Message::DOM::DOMStringList
.
Message::URI::URIReference
object.
Note that stringified value of returned value might not be same as the URI specified as the Request-URI of HTTP request or (possibly pseudo-) URI entered by the user, since no standarized way to get it is defined by HTTP and CGI/1.1 specifications.
A draft specification for DOM CGI Module <http://suika.fam.cx/gate/2005/sw/manakai/%E3%83%A1%E3%83%A2/2005-07-04> (This module does not implement the interface defined in this specification, however.)
Wakaba <w@suika.fam.cx>
Copyright 2003, 2007 Wakaba <w@suika.fam.cx>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.