get UserAgent

get UserAgent

am 21.01.2008 08:15:27 von Jeff Pang

Hello,

what are the methods to get UserAgent setting in both mp1 and mp2?
I tried search,but got no results.
Thanks!

Regards,
Jeff Pang

Re: get UserAgent

am 21.01.2008 08:52:54 von Foo JH

Isn't UserAgent just a header field? You can browse through the headers.

Jeff Pang wrote:
> Hello,
>
> what are the methods to get UserAgent setting in both mp1 and mp2?
> I tried search,but got no results.
> Thanks!
>
> Regards,
> Jeff Pang
>

Re: get UserAgent

am 21.01.2008 09:19:07 von Jeff Pang

yup,thanks for the reminding.
I checked the doc, for mp1 it's $r->header_in(); for mp2 it's $r->headers_in().


-----Original Message-----
>From: Foo JH
>Sent: Jan 21, 2008 3:52 PM
>To: Jeff Pang
>Cc: modperl-list
>Subject: Re: get UserAgent
>
>Isn't UserAgent just a header field? You can browse through the headers.
>


Regards,
Jeff Pang