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
But how do I get the protocol, http or https.
You can check the port on $c-local_addr. 443 is https.
Rob
PROTECTED]
Organization: bivio Software Artisans, Inc. http://www.bivio.net
Date: Tue, 6 Nov 2001 08:45:45 -0700
To: [EMAIL PROTECTED]
Subject: Re: http or https in URL?
But how do I get the protocol, http or https.
You can check the port on $c-local_addr. 443 is https.
Rob
*sigh* Didn't we have this argument out about 2 months ago???
There's an old thread on this and most of what's being said here isn't
adding anything, but rather repeating things... The conclusions were
basically that the best way would be to check $ENV{HTTPS}, but I seem to
recall someone
From: Richard L. Goerwitz III *EXTERN* [mailto:[EMAIL PROTECTED]]
Reif Peter wrote:
Yes, I can set it with PerlSetVar protocol https, but is
there a simpler
way?
If you're in a response handler, you could test for the HTTPS
environment variable. Otherwise you're stuck with a