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
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?
Yes, I can set it with
But how do I get the protocol, http or https.
You can check the port on $c-local_addr. 443 is https.
Rob
of $modul and $page.
Michael
Datum: 06.11.2001 16:43
An:[EMAIL PROTECTED]
Betreff: http or https in URL?
Nachrichtentext:
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
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
sub savelink ($modul: string min 4 max 4, $page: string
default index.html) {
my $r = Apache-request;
my $session_id = $r-pnotes('sessionid');
my $uri = Apache::URI-parse($r);
my $hostinfo = $uri-hostinfo;
my $scheme = $uri-scheme;
my $url = $scheme . '://' .
- Original Message -
From: Reif Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 06, 2001 17:37
Subject: http or https in URL?
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
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