SSL and Request.ServerVariables

M

Mark

Hi - I am trying to use Request.ServerVariables("SCIPT_NAME") - this is
ok normally, but when I try to use the script behind SSL - it does not
pick up the full path to where I am - eg:

https://sslrel.com/sslcert.mysite.co.uk/Default.asp

Request.ServerVariables("SCIPT_NAME") in this file, would show:

https://sslrel.com/Default.asp

Which makes all my redirects etc - not work!

Is this a known feature of SSL, or has it just been setup incorrectly?

Thanks for any help,

Mark
 
R

Ray Costanzo [MVP]

SCRIPT_NAME wouldn't ever include the http://domain part of the URL. It
only returns the virtual path to the page that you have loaded, i.e.

/default.asp
or
/somedir/somefile.asp

See here for getting the full URL. http://www.aspfaq.com/show.asp?id=2072

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top