0
고객 사용 http://aaa.com/uploads/bb/index.html 내 ASP.NET MVC 사이트를 요청하십시오. 고객이 사이트에 액세스 할 수있는 충분한 권한을 갖고 있는지 확인하여 요청을 받고이를 처리해야합니다. 나는 이것을하기 위해 IHttpModule
을 사용하고있다.html로 요청 asp.net mvc 사이트
public class myHttpModule : IHttpModule {
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}
void context_BeginRequest(object sender, EventArgs e)
{
HttpApplication application = (HttpApplication)sender;
Uri url = application.Context.Request.Url;
string path = url.AbsoluteUri;
}
}
문제는 두 번째 웹 사이트를 요청할 같은 URL을 사용할 때 HttpModule
요청을 잡을 수 없다.