Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Variable equivalent

Status
Not open for further replies.

Sailorkid

MIS
Aug 21, 2001
2
US
Is there a way to find the equivalent of Request.ServerVariables("HTTP_HOST") in Javascript?
 
Sailorkid,

hmm...i dont know much about it, but checked some resources and php and asp do that easily...

other than that, this is what i found:

The two most common HTTP Headers are Referer and User-Agent. An HTTP header can be obtained from the Request.ServerVariables collection using the following syntax:

Request.ServerVariables("HTTP_HTTP Header Name")

...it seems a bit vague to me so here is the url with the full article:


Hope it helps ;)

~ jsLove
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top