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.
You should be able to get this info via
Request.ServerVariables("HTTPS")
See here for more info.
I used this to change image links to https to avoid weird IE messages:
<%
dim socket
If Request.ServerVariables("HTTPS") = "on" then
socket = "https"
else
socket = "http"
End if
%>
Then
<img src="<%response.write(socket)%>://website.com/images/logo.png" class="logo" alt="logo" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With