Is there a common way to parse arrays sent in this notation?
>>> import urlparse
>>> urlparse.parse_qs('a=1&a=2')['a']
['1', '2']
I'd expect the output of the following to be the same:
>>> urlparse.parse_qs('a[0]=1&a[1]=2')['a']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'a'
Is there a reason why it isn't so?
var arr=[1,2]; new Request({url:'...'}).post({a: arr});