perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory C. Omand" <Cory.Om...@sun.com>
Subject Re: URI without referer
Date Mon, 07 Jun 2004 20:51:04 GMT
Ok, so the 'referer:' bit was due to my server log format.  The URI
itself is fine.


On Mon, 2004-06-07 at 13:04, Cory C. Omand wrote:
> Hi,
> 
> I'm having some difficulties with $r->uri under MP2 + Apache 2.x.  I
> need to get just the requested URI, not the referer, but whatever is
> coming back from $r->uri is *not* letting me strip the referer
> information.  For instance:
> 
> my $uri = $r->uri;
> # $uri = 'http://blah/blah.txt, referer: http://blah/blah'
> 
> $uri =~ s/, referer:.*$//;
> # $uri = 'http://blah/blah.txt, referer: http://blah/blah'
> 
> In the documentation for Apache::RequestRec, it says that $r->uri
> returns a string, but the string it returns does *not* behave like a
> string.  Even this fails:
> 
> my $comma_at = rindex($uri, ',');
> # $comma_at = -1
> 
> So, how can I make the $uri behave like a string??
> 
> Thanks in advance,
> Cory.
> 
> 
> 


-- 
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


Mime
View raw message