阅读背景:

ASP.NET HttpHandler可以处理http 400 - 错误请求吗?

来源:互联网 

We have an HttpHandler that deals directly with binary posts over HTTP from custom client software. The client software occasionally sends data which results in IIS 7 responding with a 400 - Bad Request. Since the "400 Bad Request" is special in that HTTP.SYS transparently handles it in kernel mode without notifying user mode of anything, no errors are raised to be handled in ASP.NET. Is it possible to catch this http 400 in ASP.NET, so that I can write specific data to the Response stream in these scenarios? A redirect to another page isn't an option as it needs to be in the current Request/Response.We have an HttpHandler that deals directly with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: