NAME
HTML::StickyQuery - add sticky query string to a tag href attributes.
SYNOPSIS
use HTML::StickyQuery;
my $s = HTML::StickyQuery->new(
regexp => '\.cgi$',
abs => 0,
override => 1
);
print $s->sticky(
file => 'foo.html',
param => {
SESSIONID => 'xxx'
}
);
DESCRIPTION
this module is sub class of HTML::Parser and uses it to parse HTML document and add query string to href attributes.
you can assign Session ID or any form data without using cookie.
if you want to use sticky CGI data via FORM. it is better to use HTML::FillInForm.
CONSTRUCTOR
- new(%option)
-
constructor of HTML::StickyQuery object. the options are below.
- abs
-
add query string to absolute URI or not. (default: 0)
but, if you enabled this option. your query string are revealed via HTTP_REFERER. very insecure!
- override
-
override original query string or not (default: 0)
- regexp
-
regular expression of affected URI. (default: none)
METHODS
- sticky(%options)
-
parse HTML and add query string. return HTML document. the options are below.
- file
-
specify the HTML file.
- scalarref
-
specify the HTML document as scalarref.
- param
-
query string data. as hashref.
AUTHOR
IKEBE Tomohiro <ikebe@edge.co.jp>
SEE ALSO
COPYRIGHT
Copyright(C) 2001 IKEBE Tomohiro All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.