Here is my link:
58.87.64.22/?{{%25}}cake\=1
When I open it in Chrome, it will give me 400 status code which is correct.
But When I open it using HTTP client, it will return 200 status code:
HttpClient client = new HttpClient();
var w = await client.GetAsync("http://58.87.64.22/?{{%25}}cake\\=1");
it seems HTTP client will encode the URL into this:
58.87.64.22/?%7B%7B%25%7D%7Dcake%5C=1
when I test the encoded URL in Chrome, it will open a webpage and will return 200 status code.
How to solve such a thing? I need to get 400 status code when sending request to this URL.