开发者

mvc error in url when contain "%" char

开发者 https://www.devze.com 2022-12-31 23:29 出处:网络
when I add \"%\" character to themvc url prjectI get bad request from server , how to let such character to be allowed in the url

when I add "%" character to the mvc url prject I get bad request from server , how to let such character to be allowed in the url I want this to work if possible

开发者_开发知识库

http://localhost:56203/Home/gf%test/194/184/w if I remove "%" it work fine

thanks


The % character tells the web server that you have an encoded character. In order to include an actual % character, you need to encode it as %25:

http://localhost:56203/Home/gf%25test/194/184/w

0

精彩评论

暂无评论...
验证码 换一张
取 消