ASP.NET Question: Request.Url.Host property
Does this property return, e.g., www1.domain.com, www2.domain.开发者_StackOverflow中文版com, etc.
And if there is any exception?
Thanks.
Sure - it can return an IP address. Or an internal host name. Basically it returns what the client sent in the host header, and that can even be bogus, depending on how IIS is configured.
精彩评论