How can I get a URL-encoded version of a multidimensional dictionary in Python? Unfortunately, urllib.urlencode()
only works in a single dimension. I would need a version capable of recursively encoding the dictionary.
For example, if I have the following dictionary:
{'a': 'b', 'c': {'d': 'e'}}
I want to obtain the following string:
a=b&c[d]=e