I am learning about web security but very confused about URL Encoding, it will be big help if anyone can help.
On PortSwigger, I learned that url "http://127.0.0.1/admin" can be used as "http://127.0.0.1/%2561dmin" by encoding 'a' as '%61' and then encoding again % and it will become "%2561"
Now when I am trying on my local computer, then single URL encoding works "http://127.0.0.1/%61dmin"
But double URL encoding not works "http://127.0.0.1/%2561dmin"
So I am confused about how server knows how many time it have to decode URL, And is this always the case or it will only works in some cases as it not working in my localhost and some other places I tried.