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

NAME

Apache::DoCoMoUID - Add i-mode terminal's uid to HTTP Request Header

SYNOPSIS

  # in httpd.conf
  PerlInitHandler Apache::DoCoMoUID

DESCRIPTION

Apache::DoCoMoUID sets the value of uid to HTTP Request Header as X-DoCoMo-UID. Thereby, that value can be referred to now from an environment variable ($ENV{HTTP_X_DOCOMO_UID) in your program.

Moreover, that value is also recordable on the access_log of Apache. It is, even when requested by POST, of course. If the following setup is in httpd.conf, uid of all cellular phones (i/v/ez) can be recorded now.

  # in httpd.conf
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{x-docomo-uid}i %{x-jphone-uid}i %{x-up-subno}i" mobile_combined
  CustomLog /usr/local/apache/logs/access_log mobile_combined

CAUTION

Apache::Request object twice within the same request - the symptoms being that the second Apache::Request object will not contain the form parameters because they have already been read and parsed. Since -- Phase after this It is necessary to use Apache::Request->instance().

AUTHOR

Satoshi Tanimoto <tanimoto@cpan.org>

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

SEE ALSO

Apache, Apache::Request