Plack::Middleware::DoCoMoGUID - combine DoCoMoGUID::RedirectFilter and DoCoMoGUID::HTMLStickyQuery.
use Plack::Builder; builder { enable_if { $_[0]->{HTTP_USER_AGENT} =~ m/DoCoMo/i } "DoCoMoGUID"; };
or add check param
builder { enable_if { $_[0]->{HTTP_USER_AGENT} =~ m/DoCoMo/i } "DoCoMoGUID", params => +{ 'foo' => 'bar', }; };
this will check guid and foo parameter.
Plack::Middleware::DoCoMoGUID append ?guid=ON to HTML content relative link or form action or Location header of your HTTP_HOST.
If you want not to use with redirect filter and html filter, consider using RedirectFilter or HTMLStickyQuery separatery.
Keiji Yoshimi <walf443 at gmail dot com>
Plack::Middleware::DoCoMoGUID::RedirectFilter, Plack::Middleware::DoCoMoGUID::HTMLStickyQuery Plack::Middleware::DoCoMoGUID::CheckParam
http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html#imodeid
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::DoCoMoGUID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::DoCoMoGUID
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::DoCoMoGUID
For more information on module installation, please visit the detailed CPAN module installation guide.