Acme-Tools
view release on metacpan or search on metacpan
44084409441044114412441344144415441644174418441944204421442244234424442544264427In that case C<<
$ENV
{CONTENT_LENGTH} >> is taken as the number of bytes to be
read
from C<STDIN>
and those bytes are used as the missing input argument.
The environment variables QUERY_STRING, REQUEST_METHOD and CONTENT_LENGTH is
typically set by a web server following the CGI standard (which Apache and
most of them can
do
I guess) or in mod_perl by Apache. Although you are
probably better off using L<CGI>. Or C<<
$R
->args() >> or C<<
$R
->content() >> in mod_perl.
B<Output:>
C<webparams()> returns a hash of the key/value pairs in the input argument. Url-decoded.
If an input string
has
more than one occurrence of the same key, that
keys
value in the returned hash will become concatenated
each
value separated by a C<,> char. (A comma char)
Examples:
my
%R
=webparams();
"Content-Type: text/plain\n\n"
;
# or rather \cM\cJ\cM\cJ instead of \n\n to be http-compliant
"My name is $R{name}"
;
( run in 0.260 second using v1.01-cache-2.11-cpan-0f795438458 )