Find the host header value on the website?

How can I find the value of the host header to be passed to IIS? I just want to display this host header name in the browser. how can i get this value?

+3
source share
1 answer
Header title

embedded in the header of the HTTP header as HOST. If you want to display this on your own ASP.NET page, you can access it from Page.Context.Request.Headers.GetValues ​​("Host")

+6
source

Source: https://habr.com/ru/post/1723652/


All Articles