[英]Http 400 Request .net
When I enter a url to system something like http://localhost:2055/test/5*5*5.html
. 当我输入系统网址时,例如
http://localhost:2055/test/5*5*5.html
。 It throws http 400 request. 它引发http 400请求。 What is the reason of that ?
是什么原因呢?
Try looking in your Windows Event Viewer. 尝试在Windows事件查看器中查找。 It will more than likely be throwing an error due to an invalid character in the path.
由于路径中的无效字符,很有可能会引发错误。 The invalid character will be the asterisk
*
. 无效字符为星号
*
。
You can allow invalid characters in your paths if you absolutely require it, but it's not recommended and can get very sticky: 如果绝对需要,可以在路径中允许使用无效字符,但是不建议这样做,并且粘性会很强:
See Scott Hanselman's post here: 在此处查看Scott Hanselman的帖子:
http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.