> From: Stas Bekman *EXTERN* [mailto:[EMAIL PROTECTED]] > > 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