RE: extract hostname from HTTP::Request

Austin S. Lin (austin@al2.com)
Sat, 20 Mar 1999 07:08:47 -0500 (EST)


$r->protocol() should give you what you want.  see Apache.pm doc
or http://www.modperl.com/book/chapters/ch9.html

- Austin

On Mar 17, Jonas Nordstr=F6m sprach thusly:

> I found out that you can use the Apache object. ($s=3Dr->server, $serve=
rhost =3D
> $s->server_hostname).
> But I have another question: How do you know if the client used http or
> https? (without looking at the port number)