Re: Getting current url from request?

2006-09-05 Thread Geoffrey Young
Bas Schulte wrote: > Hi, > > I sort of hoped I could simply get it directly from the Apache request > object but apparently, I can't. of course you can? if Apache knows it at all you can get to it from mod_perl :) see recipe 5.3 in the mod_perl developer's cookbook for the full explanation of

Re: Getting current url from request?

2006-09-01 Thread Bas Schulte
Hi, I sort of hoped I could simply get it directly from the Apache request object but apparently, I can't. Turns out I had to have a CGI instance anyway so I'm using $cgi->url () now, works fine.

Re: Getting current url from request?

2006-09-01 Thread Philip M. Gollucci
David Nicol wrote: On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: $r-> the_request will give you the HTTP header Are not the standard CGI environment vars still available in modperl? This code snip will dump them for your inspection: print join "\n", "", (map {"$_ is $ENV{$_}"} sort k

Re: Getting current url from request?

2006-09-01 Thread David Nicol
On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: $r-> the_request will give you the HTTP header Are not the standard CGI environment vars still available in modperl? This code snip will dump them for your inspection: print join "\n", "", (map {"$_ is $ENV{$_}"} sort keys %ENV),""; --

Re: Getting current url from request?

2006-09-01 Thread Jonathan Vanasco
On Sep 1, 2006, at 1:53 PM, Bas Schulte wrote: I may be getting a bit rusty but I can't figure out which method to use to get at the current url from the Apache request object. $r-uri () gives me the path but not the schema, host and port. $r->unparsed_uri will give you the GET args $r-> th

Getting current url from request?

2006-09-01 Thread Bas Schulte
Hi, I may be getting a bit rusty but I can't figure out which method to use to get at the current url from the Apache request object. $r-uri () gives me the path but not the schema, host and port. Looking through perldoc Apache doesn't really give me a clue. Anyone?