locked
Redirecting HTTP TO HTTPS. RRS feed

  • Question

  • User1354597715 posted
    Could i acheive writing a handler or module that can redirect in any request to a server to https. Is this the right way to go about it? Or is there a better way? TIA brian
    Tuesday, November 9, 2004 2:14 PM

All replies

  • User-886813230 posted
    I'm not sure what problem you're trying to solve, but my guess is that redirecting the request is not the correct way to handle it. The purpose of HTTPS is to encrypt the request as is moves from the client to the server. If you were to redirect an HTTP request to HTTPS, it's too late for the encryption to do any good. The valuable data has already been transmitted. On the other hand, I could be completely off base about what you're trying to accomplish. :)
    Tuesday, November 9, 2004 10:14 PM
  • User1354597715 posted
    Basically what has happened is we now require ssl on our server. I'm trying to save the users (that have a particular link to our site bookmarked) from getting the 403.4 ssl required error. I just want to take their inital request (from them clicking the bookmark) and redirecting to the ssl so it will be seemless. Once that happens all future requests will be secure. Hopefully this explains my situation alittle better. TIA Brian
    Wednesday, November 10, 2004 9:04 AM
  • User-2113013486 posted
    Here is a couple of options: http://blogs.msdn.com/stefan_gossner/archive/2004/04/22/118024.aspx http://weblogs.asp.net/scottcate/archive/2004/04/27/121657.aspx
    Friday, November 12, 2004 6:11 PM
  • User-515192997 posted
    Exactly what you want : http://www.codeproject.com/aspnet/WebPageSecurity.asp
    Friday, December 10, 2004 12:25 PM
  • User-1935736081 posted
    I am dealing with the same issue exactly. However, all the examples noted are in c#. I need something in VB. My knowledge of c# are limited and, therefore, I do not feel confident in converting it. Any assistance would be greatly appreciated.
    Friday, December 24, 2004 2:11 PM
  • User-515192997 posted
    See Version 2. it is in C# AS WELL AS VB.NET plus some improvements and new features. http://www.codeproject.com/aspnet/WebPageSecurity_v2.asp you will enjoy it.
    Saturday, December 25, 2004 11:16 AM
  • User-1935736081 posted
    Thank you so much. This worked perfectly.
    Thursday, December 30, 2004 5:33 PM