Re: Invoking an OutputFilterHandler for a particular User-Agent

2008-03-28 Thread woinshet abdella
gt; To: modperl@perl.apache.org Cc: woinshet abdella <[EMAIL PROTECTED]> Sent: Friday, March 28, 2008 10:10:20 AM Subject: Re: Invoking an OutputFilterHandler for a particular User-Agent On Fri 28 Mar 2008, woinshet abdella wrote: > PerlRequire /usr/local/libexec/perl/startup.pl >

Re: Invoking an OutputFilterHandler for a particular User-Agent

2008-03-28 Thread Torsten Foertsch
ay to invoke the handler ONLY for a > particular user-agent. use something like the following lines at start of your filter: unless( $f->ctx ) { unless( $f->r->headers_in->{'User-Agent'} eq 'Wanted' ) { $f->remove; return Apache2::Const::DECLINED; } } Torsten

Invoking an OutputFilterHandler for a particular User-Agent

2008-03-28 Thread woinshet abdella
PerlOutputFilterHandler Apache::CustomFilterTitle ... This is working as expected. My question is, I need to find a way to invoke the handler ONLY for a particular user-agent. Here is my environment Red Hat Enterprise Linux Apache/2.0.46 perl, v5.8.0 I apperciate your help Thanks Woinshet

user-agent

2005-04-18 Thread Dermot Paikkos
Hi, mod_perl 2 RC5 What is the best (fastest) way to determine the request's user-agent? $r->header_in()? Thanx. Dp.