It returns the same thing. Note that this variable is not reliable, in that
a person can make that variable be whatever he wants it to be. Example:
yourpage.asp:
<%
Response.Write Request.ServerVariables("HTTP_HOST") & " or " &
Request.ServerVariables("SERVER_NAME")
%>
Load that page and see the results. Then, open a command prompt (cmd.exe)
and enter this:
(Where xxx.xxx.xxx.xxx is your site's IP address)
echo xxx.xxx.xxx.xxx bogus>>%windir%\system32\drivers\etc\hosts
Now load
http://bogus/yourpage.asp in your browser.
--
Ray at home
Microsoft ASP MVP
"JT" <an*******@discussions.microsoft.com> wrote in message
news:12*****************************@phx.gbl...
because i haven't yet setup https on my webserver... smarty
-----Original Message-----
Why not just try it and see?
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
JT <an*******@discussions.microsoft.com> wrote in message
news:13*****************************@phx.gbl... if i am using https, will this work the same as if i were using http?
Request.ServerVariables("HTTP_HOST")
returns www.mywebsite.net for http.
what about https?????
thanks much
jt
.