Not the best way.  There is nothing to stop me from running
straight http on port 443:

        http://yoursite.com:443

or https on port 80:

        https://yoursite.com:80

If you're using mod_ssl to do the https stuff, it will set
the HTTPS environment variable to 'on' when using https.



-----Original Message-----
From: Rob Nagler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 06, 2001 10:46 AM
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



Reply via email to