I have classic asp web page in which I am calling an XML source using MSXML2 on an IIS box. MSXML2 requires a full URL http://www.dom.com/path etc. and this all work very well until I tried to install on a server behind a content switch on https url.
After some debuging I worked out the that the content switch didn't have path for http traffic so the the call to the http url failed I was able to fix this my change the target url to https.
As this code is used on both http and now https I wanted to switch the the URL type in code so I did have code fork.
I throught this would be easy and that this would do the trick
if Request.ServerVariables("HTTPS") = "off" then
But no the content switch hold the cert not the web server which is plan http traffic
Can anybody think of way that I can tell what the FULL URL with https/http or any other way I can fix it.
Many thanks Paul