Search code examples
sslasp-classic

How can I tell if a page is SSL in ASP?


How do I tell if a page is SSL'd in "classic" ASP? I can't use Javascript because what I'm outputting is the results of a <noscript> tag.

This can't be changed or modified in IIS. It has to be in the script file itself.


Solution

  • You should be able to get this info via

    Request.ServerVariables("HTTPS")
    

    See here for more info.