开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜