This works great:
GET /mvc/Movies/TitleIncludes/Lara%20Croft
When I send a query containing a colon, for example:
GET /mvc/Movies/TitleIncludes/Lara%20Croft:%20Tomb
... it generates a 400 error. The error says that ASP.NET has detected invalid characters in the URL.
If I try to escalate the url, the request will look like this:
GET /mvc/Movies/TitleIncludes/Lara%20Croft%3A%20Tomb
... and that also gives me error 400.
If I replaced the colon with |
GET /mvc/Movies/TitleIncludes/Lara%20Croft|%20Tomb
.., which was also reassigned as illegal, this time with a 500 error. Message: Illegal characters in transit.
URL escaping that | leads to the same error.
I really, really don't want to use the querystring parameter.
connected:
Sending URLs / Paths to ASP.NET MVC Controller Actions
source share