HTML::StickyQuery::DoCoMoGUID - add guid query for DoCoMo imode
use HTML::StickyQuery::DoCoMoGUID; my $guid = HTML::StickyQuery::DoCoMoGUID->new; print $guid->sticky( scalarref => \$html );
add sessionid
my $guid = HTML::StickyQuery::DoCoMoGUID->new; print $guid->sticky( scalarref => \$html, param => { sessionid => 'SID' }, );
guid=ON を出さない
my $guid = HTML::StickyQuery::DoCoMoGUID->new; print $guid->sticky( scalarref => \$html, param => { sessionid => 'SID' }, disable_guid => 1, );
FORM タグの時の INPUT タグを XHTML じゃ無くする
my $guid = HTML::StickyQuery::DoCoMoGUID->new; print $guid->sticky( scalarref => \$html, param => { sessionid => 'SID' }, disable_guid => 1, xhtml => 0, );
主に HTML::StickyQuery を使って DoCoMo用の guid=ON をつけるフィルタリングをするよ。 FORM タグがある場合には、 get method の時には input タグを追加して、 post method の時には action の中に guid=ON を追加します。
sticky method への引数に param => { key => value } を追加すると HTML::StickyQuery へそのまま処理が引き継がれるよ。 ただし、 FORM タグの場合は <input type="hidden" name="key" value="value" /> のような HTML が出力されます。
どんな感じでフィルタリングされるかは t ディレクトリの中のテストコードを参考にしてくださいね。
Kazuhiro Osawa <yappo {at} shibuya [dot] pl>, Hideo Kimura
HTML::StickyQuery, http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html#imodeid
git clone git://github.com/yappo/p5-HTML-StickyQuery-DoCoMoGUID.git
patches and collaborators are welcome.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::StickyQuery::DoCoMoGUID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::StickyQuery::DoCoMoGUID
CPAN shell
perl -MCPAN -e shell install HTML::StickyQuery::DoCoMoGUID
For more information on module installation, please visit the detailed CPAN module installation guide.