Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc

Thanks Ed,

As you mentioned in your last lines, I'll have to specify the http protocol 
for the ordinary pages -- I hadn't done that yet. I assumed it would default 
to http; but, if I had thought about it, that wouldn't make sense. Unless 
told otherwise, https would not "know" that another protocol was requested.

That should fix things, thanks for the explanation.

Regards,
Andre


On Monday 10 June 2002 03:48 pm, you wrote:
> I'm pretty sure it's just an issue of using HTTPS for encrypted pages and
> HTTP for unencrypted.  For example:
>
>   http://www.example.com
>
> is unencrypted and pulls from port 80 on the web server.  Whereas,
>
>   https://www.example.com
>
> would be encrypted and come from port 443 on the web server.
>
> You can tell whether you're in encrypted mode or not by checking the
> variable:
>
>   $_SERVER['HTTPS'] == "on"
>
> One thing to check, anchors with no protocol specified default to the
> current protocol.  If you're in an encrypted page and have a link like
> this:
>
>   Home Page
>
> The protocol will default to https and this may be the source of the
> problem you're experiencing.
>
> -Ed
>
>
>
> -
> Hi Ed,
>
> Maybe it's just one of those slow days, brain-wise. But I have a 'problem'
> with https remaining in that mode even on pages that haven't specifically
> requested it. That was not my understanding how it worked. Now, if I have
> to
>
> call "http" on pages that do not need https, then how would I be able to
> distinguish whether or not the mode is https or not.
>
> [I'm thinking of my bank's secure pages -- after I'm finished with
> the secure stuff, I get booted out of https. I suppose that's what I
> expected
> would happen (only pages calling https would be in it.)
>
> Sigh . . . more reading to do :>
>
> Regards,
> Andre
>
>
> ***
>* This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law.  If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message.  If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.  Thank you very
> much.

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed

I'm pretty sure it's just an issue of using HTTPS for encrypted pages and
HTTP for unencrypted.  For example:

http://www.example.com

is unencrypted and pulls from port 80 on the web server.  Whereas, 

https://www.example.com

would be encrypted and come from port 443 on the web server.

You can tell whether you're in encrypted mode or not by checking the
variable:

$_SERVER['HTTPS'] == "on"

One thing to check, anchors with no protocol specified default to the
current protocol.  If you're in an encrypted page and have a link like this:

Home Page

The protocol will default to https and this may be the source of the problem
you're experiencing.  

-Ed



-
Hi Ed,

Maybe it's just one of those slow days, brain-wise. But I have a 'problem' 
with https remaining in that mode even on pages that haven't specifically 
requested it. That was not my understanding how it worked. Now, if I have to

call "http" on pages that do not need https, then how would I be able to 
distinguish whether or not the mode is https or not. 

[I'm thinking of my bank's secure pages -- after I'm finished with 
the secure stuff, I get booted out of https. I suppose that's what I
expected 
would happen (only pages calling https would be in it.)

Sigh . . . more reading to do :>

Regards,
Andre

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc

Hi Ed,

Maybe it's just one of those slow days, brain-wise. But I have a 'problem' 
with https remaining in that mode even on pages that haven't specifically 
requested it. That was not my understanding how it worked. Now, if I have to 
call "http" on pages that do not need https, then how would I be able to 
distinguish whether or not the mode is https or not. 

[I'm thinking of my bank's secure pages -- after I'm finished with 
the secure stuff, I get booted out of https. I suppose that's what I expected 
would happen (only pages calling https would be in it.)

Sigh . . . more reading to do :>

Regards,
Andre

On Monday 10 June 2002 02:28 pm, you wrote:
> Isn't it just an issue of whether you call http: or https: ?
>
> -Original Message-
> From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Switching from HTTPS to HTTP using PHP?
>
>
> After completing most of the coding for my site, I would like to use
> "https"
>
> for restricted areas that require login. In short tests, I've discovered
> that, yes, I can engage the encrypted mode while calling these pages, but
> I've also discovered that it stays in the "https" mode even when it passes
> to once non-restricted pages. I'm not sure whether that is a problem, but 
> .
>
> . . I gather this is "normal" behavior since I had requested "https". But
> is
>
> it possible to "unrequest" ?
>
> My question is simple: is there a way to "get out of" or "turn off" https
> once it has been initiated -- using PHP?
>
> Since I have limited or no experience with https, any pointers, advice, or
> admonitions would be greatly appreciated. And they say, "Ignorance is
> bliss"
>
> -- I'm not too sure about that :>
>
> Tia,
> Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed

Isn't it just an issue of whether you call http: or https: ?

-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Switching from HTTPS to HTTP using PHP?


After completing most of the coding for my site, I would like to use "https"

for restricted areas that require login. In short tests, I've discovered 
that, yes, I can engage the encrypted mode while calling these pages, but 
I've also discovered that it stays in the "https" mode even when it passes 
to once non-restricted pages. I'm not sure whether that is a problem, but  .

. . I gather this is "normal" behavior since I had requested "https". But is

it possible to "unrequest" ?

My question is simple: is there a way to "get out of" or "turn off" https 
once it has been initiated -- using PHP?

Since I have limited or no experience with https, any pointers, advice, or 
admonitions would be greatly appreciated. And they say, "Ignorance is bliss"

-- I'm not too sure about that :>

Tia, 
Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php