Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我输入一个 url 来系统类似http://localhost:2055/test/5*5*5.html. 它抛出 http 400 请求。这是什么原因?
http://localhost:2055/test/5*5*5.html
尝试查看您的 Windows 事件查看器。由于路径中的字符无效,它很可能会引发错误。无效字符将是星号*。
*
如果您绝对需要,您可以在路径中允许无效字符,但不建议这样做,并且会变得非常棘手:
请参阅 Scott Hanselman 的帖子:
http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx