perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reif Peter <...@adv.magwien.gv.at>
Subject RE: http or https in URL?
Date Wed, 07 Nov 2001 09:23:49 GMT
> From: Stas Bekman *EXTERN* [mailto:stas@stason.org]
> 
> Reif Peter wrote:
> 
> > In a mod_perl handler I want to construct the original URL 
> of the request. I
> > can construct it with r->get_server_name, 
> r->get_server_port, r->uri and
> > $r->parsed_uri->query.
> > 
> > But how do I get the protocol, http or https.  Is there a 
> way to find out
> > whether SSLEngine On is set?
> > 
> 
> 
> Note that it's also possible to check the scheme:
> 
>    print "SSL" if Apache::URI->parse($r)->scheme =~ m/^https/;
> 
scheme is good!
Why is $r->parsed_uri not the same as Apache::URI->parse($r) ?

Another question: If my server listens to 2 adresses as with
<VirtualHost _default_:443 _default_:4443>
I get always 443 from s->port. The REAL port I get from the Host header. Is
there another way?

Peter

Mime
View raw message