Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 48973 invoked from network); 11 May 2009 11:22:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 May 2009 11:22:11 -0000 Received: (qmail 9292 invoked by uid 500); 11 May 2009 11:22:09 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 9240 invoked by uid 500); 11 May 2009 11:22:09 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 9232 invoked by uid 99); 11 May 2009 11:22:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 11:22:09 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of clint@traveljury.com does not designate 209.85.219.169 as permitted sender) Received: from [209.85.219.169] (HELO mail-ew0-f169.google.com) (209.85.219.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 11:21:58 +0000 Received: by ewy17 with SMTP id 17so3433447ewy.10 for ; Mon, 11 May 2009 04:21:37 -0700 (PDT) Received: by 10.216.26.200 with SMTP id c50mr2884883wea.61.1242040896992; Mon, 11 May 2009 04:21:36 -0700 (PDT) Received: from ?192.168.5.100? ([89.131.29.12]) by mx.google.com with ESMTPS id m5sm12393366gve.3.2009.05.11.04.21.34 (version=SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 04:21:35 -0700 (PDT) Subject: Re: USER_AGENT From: Clinton Gormley To: Idel Fuschini Cc: modperl List In-Reply-To: <932590f80905110415tb8e4618t6afd501ce395ed6a@mail.gmail.com> References: <932590f80905110415tb8e4618t6afd501ce395ed6a@mail.gmail.com> Content-Type: text/plain Date: Mon, 11 May 2009 13:21:29 +0200 Message-Id: <1242040889.3092.4.camel@getafix.traveljury.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2009-05-11 at 13:15 +0200, Idel Fuschini wrote: > Hi, > I want to read the user_agent i'm using this code: > > my $f = shift; > my $user_agent=$f->headers_in->{'User-Agent'}; > > but apache logs this error: > > Can't locate object method "headers_in" via package "Apache2::Filter" Because it's not a method of Apache2::Filter: http://perl.apache.org/docs/2.0/api/Apache2/Filter.html Try $f->r->headers_in->{'User-Agent'} > clint