Is there a standard API call (or set of calls) that allows me to encode a list of key/value pairs into a SINGLE request parameter? Somehow I have never done this before.
What I am looking for is to generate a URL which encodes an arbitrarily long string of parameters that will be decoded by the indicated page. For example:
http://someth.ing/page?params=xxxxxxxxxxxxx
where the xxxxxxx is the encoded form of a
Map<String, String>
or if that isn't available then a
List<String>
I know my alternative is to just encode each key as its own request parameter, but that creates a lot of parsing work on the decoding side I would rather avoid. Any suggestions?