http://qs321.pair.com?node_id=807901


in reply to How to find Brower name in mod_perl

I don't know anything about modperl, however it looks like you need to use Apache2::Filter and use it to extract the user agent from the headers, something like :
$f->r->headers_in->{'User-Agent'}

See the Modperl documentation for more information.

Replies are listed 'Best First'.
Re^2: How to find Brower name in mod_perl
by perrin (Chancellor) on Nov 18, 2009 at 18:34 UTC
    You don't need filter. You use the request object, usually called $r, which you get passed in the beginning of your handler. It's what you get back from $f->r() there. If you're using ModPerl::Registry, it will also be in %ENV.