web.config 现在,IIS允许URL中包含“:”等字符,但它做了一些修改。例如:
web.config
http://localhost/a///b => http://localhost/a/b (remove all slashes but one) http://localhost/a\b => http://localhost/a/b (changes backslash with slash) ...
HttpHandler (我使用 Request.RawUrl )没有任何变化。
HttpHandler
Request.RawUrl
我认为浏览器在做这些改变,而不是服务器。通过从代码内部发送原始请求、使用AJAX或类似的东西来测试它,并查看在服务器端得到了什么。