View Full Version : $ENV{'REMOTE_HOST'} in ASP??
wassim
December 21st, 2000, 08:49
Hi,
I would like to know what is the equivalent of the Perl environment variable $ENV{'REMOTE_HOST'} in ASP??
Thanks
Wassim
ashben
December 21st, 2000, 10:09
Request.ServerVariables("REMOTE_HOST")
More on the ServerVariables collection at : http://www.4guysfromrolla.com/webtech/092298-3.shtml
wassim
December 21st, 2000, 10:20
Thanks for the answer. I used it but it gave me the IP address not the URL. I need the command that returns
the domain name that I type in the location bar.
I think $ENV{'REMOTE_HOST'} does that in Perl.
Thanks
Wassim
ashben
December 22nd, 2000, 03:35
For what you need, I guess its : Request.ServerVariables("HTTP_HOST")
I suggest you go through the working variable list at http://www.4guysfromrolla.com/demos/servervariables.asp
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.