I use $r->headers_in->{'host'} which would give you 'my.server.com' - without the 'http://'. I read somewhere (maybe on this mailing list) that using $ENV is not as efficient as using $r.

Justin


Luke Vanderfluit wrote:

Hi.

I want to get the url of a request.
So not the $r->uri
or $r->unparsed_uri
not the $r->hostname

but the part of the request that is 'http://my.server.com/'

How do you guys do this?

Thanks.
Kind regards.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to