简体   繁体   中英

Http 400 Request .net

When I enter a url to system something like http://localhost:2055/test/5*5*5.html . It throws http 400 request. What is the reason of that ?

Try looking in your Windows Event Viewer. 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:

http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM