if I have a query string like:
?key1=val1&key2==val2
how it should be parsed?
like:
key : key2=
value : val2
or
key : key2
value : =val2
what would be the key and the value in this case?
Is this allowed to have == sequencies in query string?
And what about following query strings?
?key=val&=====
is that syntactically correct?
Thanks
key2you will get=vale2.parse_strand in the internal params parsing),=symbol is always treated as the one separating the keys and values, and system-level separator (usually&) is used to separate the pairs. So in your first case,key2will be the key, and=val2will be the value. In your second case, the last series of=====will be just ignored, as there's no key to extract there.