Advertisement

05.12.2008 at 04:41AM PDT, ID: 23394188 | Points: 500
[x]
Attachment Details

how to identify whether http or https is being used

Asked by jimbona27 in Programming for ASP.NET, Web Languages/Standards, Secure Socket Layer (SSL) & HTTPS

Tags: asp.net

hi EE,
We have recently moved sites and the old site has an ssl on a restricted area under the root of the website.  The problem now is that the new website does not have an SSL and the restricted area is on another server.

So we need to catch the old address (starting with https...) to redirect to another page.
The new website does not have an SSL on it.  

Testing an blank page on my machine like so: i.e. http://localhost:1891/test/default.aspx
and then changing the protocol to https then it fails:

this is the code I have got from the internet so far but I get a the connection as interrupted when using https as above.

any advice how I can identify that 'this' address is being access using the https protocol and then going somewhere else?

ThanksStart Free Trial
1:
2:
3:
        if (!Request.IsSecureConnection)
        {
        }
 
Loading Advertisement...
 
[+][-]05.12.2008 at 04:52AM PDT, ID: 21546046

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:04AM PDT, ID: 21546113

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:10AM PDT, ID: 21546139

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:16AM PDT, ID: 21546166

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:34AM PDT, ID: 21546266

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:34AM PDT, ID: 21546272

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:39AM PDT, ID: 21546309

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 06:00AM PDT, ID: 21546498

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 07:01AM PDT, ID: 21547026

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 09:00AM PDT, ID: 21548100

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 09:21AM PDT, ID: 21548276

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628