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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP_HOST and its meaning

Status
Not open for further replies.

Figzus

Programmer
Mar 21, 2005
36
0
0
US
Okay I have this breadcrumb that was created in C#. I was wandering what the HTTP_HOST mean in the following code.

// get the url root, like string strDomain=Page.Request.ServerVariables["HTTP_HOST"].ToString();
strDomain.Trim(); // Trim removes leading and trailing whitespace
sbResult.Append ( "<a href=' + strDomain + "'>" + RootName + "</a>" + Separator );
 
It's a server variable. There are a number of them defined by the W3C spec, as well as the various http server makers.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top