Ian Joyce wrote:
> This may be day 1 stuff for most of you, but...
> 
> What's the quckest way to determine the URL that made the current request in 
> mod_perl 1?

you are probably looking for this:

my $uri = Apache::URI->parse($r)->unparse;

if you don't need a full uri (with the scheme, port, etc) then you can
simply use

my $uri = $r->parsed_uri->unparse;

if you don't care about the query string then you can even use

my $uri = $r->uri;

some things in Chapter 5 in the mod_perl cookbook might help as well as you
try to manipulate the uri.

http://www.modperlcookbook.org/

HTH

--Geoff



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to