Blosxom::Plugin::Web::Request - Object representing CGI request
use Blosxom::Plugin::Web::Request; my $request = Blosxom::Plugin::Web::Request->new; my $method = $request->method; # GET my $page = $request->param( 'page' ); # 12 my $id = $request->cookie( 'ID' ); # 123456
Object representing CGI request.
Create a Blosxom::Plugin::Web::Request object.
Not implemented yet.
Not implemented yet.
my $id = $request->cookie( 'ID' ); # 123456
my $value = $request->param( 'foo' ); my @values = $request->param( 'foo' ); my @fields = $request->param;
Returns the method used to access your script, usually one of POST
, GET
or HEAD
.
Returns the content_type of data submitted in a POST, generally multipart/form-data
or application/x-www-form-urlencoded
.
Returns the URL of the page the browser was viewing prior to fetching your script. Not available for all browsers.
Returns either the remote host name, or IP address if the former is unavailable.
Returns the HTTP_USER_AGENT
variable. If you give this method a single argument, it will attempt to pattern match on it, allowing you to do something like:
if ( $request->user_agent('Mozilla') ) { ... }
Returns the remote host IP address, or 127.0.0.1
if the address is unavailable (REMOTE_ADDR
).
Returns the authorization/verification name for user verification, if this script is protected (REMOTE_USER
).
Returns the protocol (HTTP/1.0 or HTTP/1.1) used for the current request.
Returns Blosxom::Plugin::Web::Request::Upload objects.
my $upload = $request->upload( 'field' ); my @uploads = $request->upload( 'field' ); my @fields = $request->upload;
Returns a Boolean value telling whether connection is secure.
Returns the value of the specified header.
my $requested_language = $request->header( 'Accept-Language' );
Blosxom::Plugin, Plack::Request
Ryo Anazawa
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.