开发者

ASP.NET Question: Request.Url.Host property

开发者 https://www.devze.com 2022-12-08 02:44 出处:网络
Does this property return, e.g., www1.domain.com, www2.domain.开发者_StackOverflow中文版com, etc.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消