I’m trying to write a Java class to log in to a certain website. The data sent in the POST request to log in is
user%5Blogin%5D=username&user%5Bpassword%5D=123456
I’m curious what the %5B and %5D means in the key user login.
How do I decode these data?
As per this answer over here:
str='foo%20%5B12%5D'encodesfoo [12]:This is called percent encoding and is used in encoding special characters in the url parameter values.
EDIT By the way as I was reading https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI#Description, it just occurred to me why so many people make the same search. See the note on the bottom of the page:
Hopefully this will help people sort out their problems when they stumble upon this question.