views:

92

answers:

1

How do I tell if a page is SSL'd in "classic" ASP? Can't use javascript because what I'm outputting is the results of a "noscript" tag. :D

Can't be changed or modified in IIS - has to be in the script file itself.

e.g. https://foobar/something.asp --> should say YES http://foobar/something.asp --> should say NO

+3  A: 

You should be able to get this info via

Request.ServerVariables("HTTPS")

See here for more info.

Kevin Tighe
That's what I needed, thanks!
Matt Rogish