Forums

ASP

This topic is locked

Get URL

Posted 21 Jul 2003 14:21:30
1
has voted
21 Jul 2003 14:21:30 Ed Moore posted:
I need a script that will write the url in ASP. I can get it to return the IP address or the physical path, but I need the www.domainname.com returned. Does anyone out there know how?

Replies

Replied 22 Jul 2003 04:06:15
22 Jul 2003 04:06:15 Rammy Nasser replied:
although i do not know the answer, My first choice would be to look at the "reverse lookup". I am sure there is a way it can be done in JS or VB.. good luck
Replied 22 Jul 2003 13:45:34
22 Jul 2003 13:45:34 Vince Baker replied:
try using the Request.ServerVariables("ServerName"

or one of the other server variables. It is there, cant remember which though,

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 22 Jul 2003 13:54:48
22 Jul 2003 13:54:48 Ed Moore replied:
Thanks. It was exactly that.

Thanks for your help.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
try using the Request.ServerVariables("ServerName"

or one of the other server variables. It is there, cant remember which though,

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 22 Jul 2003 14:01:48
22 Jul 2003 14:01:48 Ed Moore replied:
Thanks for your input. It was a server variable("Server_Name".

Thanks for your help.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
although i do not know the answer, My first choice would be to look at the "reverse lookup". I am sure there is a way it can be done in JS or VB.. good luck
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic