ASP.NET MVC 获取当前访问域名
var request = filterContext.HttpContext.Request; string url = request.Url.Authority; string functionurl = request.RawUrl; base.OnActionExecuting(filterContext); filterContext.HttpContext.Response.Write("url:" + url + functionurl);