Re: location header

2007-10-16 Thread Perrin Harkins
On 10/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > when i put warn command after the life to fetch the > $location value,It doesn't yield any value. > my $location = $r->headers_out->get('Location'); There won't be anything there unless you put something there. What are you trying to d

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 12:43 PM, Torsten Foertsch wrote: Note that all these functions are methods of the $r object. oh! ok, now i see. that makes total sense. i thought i had to access these methods via their own packages, not that they were exported into the ApacheRequestRec class.

RE: location

2007-05-03 Thread Adam Prime x443
, May 03, 2007 12:10 PM To: Torsten Foertsch Cc: modperl@perl.apache.org Subject: Re: location On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote: > You see the location function is created directly in the > Apache2::RequestRec > namespace (the PACKAGE = ...). > > The perl eq

Re: location

2007-05-03 Thread Torsten Foertsch
On Thursday 03 May 2007 18:09, Jonathan Vanasco wrote: > On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote: > > You see the location function is created directly in the > > Apache2::RequestRec > > namespace (the PACKAGE = ...). > > > > The perl equivalent would be a file named Apache2/RequestUtil

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote: You see the location function is created directly in the Apache2::RequestRec namespace (the PACKAGE = ...). The perl equivalent would be a file named Apache2/RequestUtil.pm that starts with a "package Apache2::RequestRec" line. When you

Re: location

2007-05-03 Thread Torsten Foertsch
On Thursday 03 May 2007 16:34, Jonathan Vanasco wrote: > On May 3, 2007, at 2:54 AM, Torsten Foertsch wrote: > > http://perl.apache.org/docs/2.0/api/Apache2/ > > RequestUtil.html#C_location_ > > Thats even odder... > > $r is a RequestRec, not RequestUtil > > And according to those docs, RequestUtil

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 2:54 AM, Torsten Foertsch wrote: http://perl.apache.org/docs/2.0/api/Apache2/ RequestUtil.html#C_location_ Thats even odder... $r is a RequestRec, not RequestUtil And according to those docs, RequestUtil ISA RequestRec , not the other way around. location really shoul

Re: location

2007-05-02 Thread Torsten Foertsch
On Thursday 03 May 2007 02:20, Jonathan Vanasco wrote: > I'm cleaning up some code for a dispatch class I wrote, and got very > confused: > > I found that i was accessing location from $r ( ApacheRequestReq > Object ) > > location isn't a documented function of $r though. why is that > working fo

Re: Location directive in httpd.conf

2006-09-25 Thread Philip M. Gollucci
sajid khan wrote: > Fred, below is sample configuration used > > > SetHandler perl-script > PerlHandler Apache::Hello > PerlSetVar somevar 50 > I'm almost sure this works correctly (but I could be wrong). Can you look at t/response/TestModperl/setupenv.pm and see if your case is covered. I b

Re: Location directive in httpd.conf

2006-09-25 Thread sajid khan
Fred, below is sample configuration usedSetHandler perl-script PerlHandler Apache::HelloPerlSetVar   somevar 50 Regarding your below question, the answer is yes>>Are you>>saying that in 2.0 PerlSetVar works properly for you in ,>>but not ?  Please let me know if I am overlooking or missing anythin

Re: Location directive in httpd.conf

2006-09-21 Thread Fred Moyer
On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote: I asked the below question in apache user group as well, but with no answers We have 2 location directives, one for all the requests ( ... ) and one for specific url . We declare some variables using PerlSetVar inside those and read from the pe

Re: Location, filename, path_info

2006-07-31 Thread Scott Penrose
On 31/07/2006, at 23:15, Michael Peters wrote: Are you saying that /xyz does exist in your document root? I've found that Apache won't work if you mix a virtual directory, real directory and path_info. This is because PATH_INFO is what ever is left over after url => file name mapping. If t

Re: Location, filename, path_info

2006-07-31 Thread Michael Peters
Scott Penrose wrote: > Hey ho > > I have a simple configuration: > > PerlModule Test::FH > > SetHandler perl-script > PerlResponseHandler Test::FH > > > Now I go to the URL http://www.myhost.com/xyz/abc/qqq/123 > > Inside my code I want to get "/ggg/123" so I try > > pr

Re: Location and AuthDBI

2006-03-29 Thread Christopher Hicks
On Sun, 26 Mar 2006, Christopher Hicks wrote: I've run into quite an oddity trying to get AuthDBI to work on a current CentOS box. [EMAIL PROTECTED] conf.d]# rpm -q httpd httpd-2.0.52-22.ent.centos4 [EMAIL PROTECTED] conf.d]# httpd -V Server version: Apache/2.0.5