USER_AGENT
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" why ? -- Idel = E-Mail: idel.fusch...@gmail.com Web Site: http://www.idelfuschini.it OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html
Re: USER_AGENT
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
Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8
Builds and tests find on Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.23-gentoo-r3, archname=x86_64-linux uname='linux data 2.6.23-gentoo-r3 #1 smp sun dec 30 14:44:14 est 2007 x86_64 amd athlon(tm) x2 dual core processor be-2350 authenticamd gnulinux ' Adam
Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8
Also builds fine and all tests pass on: Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.10, archname=i86pc-solaris uname='sunos fxbuild-i386 5.10 generic_127112-11 i86pc i386 i86pc solaris ' and Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.24-19-server, archname=i486-linux-gnu-thread-multi uname='linux palmer 2.6.24-19-server #1 smp sat jul 12 00:40:01 utc 2008 i686 gnulinux ' I have on more system to test on at home. Adam
Mod_perl 2 on Windows
Can anyone tell me why when I try to run the extra.pl file from the windows configuration page http://perl.apache.org/docs/2.0/os/win32/config.html#Registry_scripts I get the following error: [Mon May 11 12:52:31 2009] [notice] Child 3608: Exit event signaled. Child process is ending. [Mon May 11 12:52:32 2009] [error] Can't load 'C:/Perl/site/lib/auto/Apache2/Filter/Filter.dll' for module Apache2::Filter: load_file:The specified procedure could not be found at C:/Perl/lib/XSLoader.pm line 64. at C:/Perl/site/lib/Apache2/XSLoader.pm line 31 Compilation failed in require at C:/Perl/site/lib/Apache2/compat.pm line 48. BEGIN failed--compilation aborted at C:/Perl/site/lib/Apache2/compat.pm line 48. Compilation failed in require at C:/Apache22/conf/extra.pl line 12. BEGIN failed--compilation aborted at C:/Apache22/conf/extra.pl line 12. Compilation failed in require at (eval 3) line 1. [Mon May 11 12:52:32 2009] [error] Can't load Perl file: C:/Apache22/conf/extra.pl for server localhost:0, exiting... extra.pl looks like this: use ModPerl::Util (); use Apache2::RequestRec (); use Apache2::RequestIO (); use Apache2::RequestUtil (); use Apache2::ServerRec (); use Apache2::ServerUtil (); use Apache2::Connection (); use Apache2::Log (); use Apache2::Const -compile => ':common'; use APR::Const -compile => ':common'; use APR::Table (); use Apache2::compat (); use ModPerl::Registry (); use CGI (); 1; It's called from here: PerlRequire "C:/Apache22/conf/extra.pl" Alias /perl/ "/www/htdocs/perl/" SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders Thanks gh
Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8
On Sun, May 10, 2009 at 6:40 PM, Philippe M. Chiasson wrote: > The mod_perl 1.31 release candidate 8 is ready. It can be downloaded here: > > http://www.apache.org/~gozer/mp1/mod_perl-1.31-rc8.tar.gz > > SHA1(mod_perl-1.31-rc8.tar.gz)= 36c0e59a374dbd490da061c6b45b8e11d1f80309 > MD5(mod_perl-1.31-rc8.tar.gz)= 0c2808ccf669fea79760636e425f38b3 > > Please give it a spin in your favorite configuration and report > any problems. Especially needed against Perl-5.10 and on Windows. OK on Linux 2.6, perl 5.8.8, httpd 1.3.39 OK on OS X 10.5, perl 5.8.8, httpd 1.3.39 +1