HttpModule 不会拦截到 url 的 POST (IIS 5.1)
我在 IIS 5.1 中有一个简单的网站 (localhost/test),只有一个 HttpModule 和一个 aspx 页面。
当我浏览 aspx 页面时,HttpModule 工作正常。
使用soapUI 向aspx 页面的url (localhost/test/default.aspx) 进行POST 也可以。
但是 HttpModule 不会拦截对网站 url (localhost/test) 的 POST。
我该怎么做才能让 HttpModule 对发送到该站点的所有 POST 消息做出反应。
抱歉,这是一个初学者的问题,但几天前,这在另一台机器上的 IIS 7.5 上运行 - 这与 IIS 的版本有什么关系吗?
I have a simple web site (localhost/test) in IIS 5.1 with only a HttpModule and one aspx page.
When I browse the aspx page, the HttpModule works ok.
A POST with soapUI to the url of the aspx page (localhost/test/default.aspx) also works.
But a POST to the url of the web site (localhost/test) is not intercepted by the HttpModule.
What can I do to let the HttpModule react on all POST messages to the site.
Sorry when this is a beginner's question, but several days ago this worked on IIS 7.5 on another machine - has it got anything to do with the version of IIS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要配置 IIS 以通过 ASP.Net 发送所有请求 添加通配符映射。
You need to configure IIS to send all requests through ASP.Net by adding a wildcard mapping.