HttpContext.Current.Request.ServerVariables["HTTP_HOST"]
Try this if you've seen its a significant part of your execution:
HttpContext.Current.Request.Headers["Host"]
The reason for that is that ServerVariables is getting many more properties on initialization, including the headers.
0 comments:
Post a Comment