tags:

views:

177

answers:

1

How can i find the host header value of the website which will be give in the IIS? i just want to display that host header name in the browser. how can i get that value?

+4  A: 

host header is embedded in the HTTP header section as HOST. If you want to display that in your own ASP.NET page, you can access that from Page.Context.Request.Headers.GetValues("Host")

Lex Li
Request.Headers["Host"] is a shorter way to do it
Mr Grok