The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::DoCoMoGUID - combine DoCoMoGUID::RedirectFilter and DoCoMoGUID::HTMLStickyQuery.

SYNOPSIS

  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.

DESCRIPTION

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.

AUTHOR

Keiji Yoshimi <walf443 at gmail dot com>

SEE ALSO

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

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.