ASP.NET MVC 400 Bad Request with URLs like%

I am developing an ASP.NET MVC 3 blog application using VS10 and its asp.net development server, and today I encountered the error "HTTP Error 400 Error - Bad Request" when I request a blog post using a bullet that has these characters "doesn% 25e2% 2580% 2599t" in it.

I thought that the "%" char is allowed in the URL, for example, on StackOverflow you have https://stackoverflow.com/a/questions/tagged/ ... and this link shows all your tags with C # tags. So what is the difference for my url and how do you fix it? Can anyone explain.

Thank you very much!

+8
url asp.net-mvc-3 bad-request
source share
1 answer

You can check out the following blog post in which Scott Hanselman explains how you can include special characters in URLs. Not too fancy, although it's still pretty limited. You can also check the following message to find out how it is implemented in SO (the message is quite old, and everything can change since then, but still a good source of information).

+7
source share

All Articles