kennethreitz/httpbin — Issue #19: /post does not return multiple values with same key in form data
Author: johtso
Created: 2011-12-06 03:25:28+00:00
State: open

Raw POST request data:

POST http://www.httpbin.org/post HTTP/1.1
Host: www.httpbin.org
Content-Length: 7
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: identity, deflate, compress, gzip
Accept: */*
User-Agent: python-requests/0.8.2

foo=bar&foo=baz

Response:

>> r = requests.post('http://www.httpbin.org/post', data={'foo': ['bar', 'baz']})
>> json.loads(r.content)['form']
>> {u'foo': u'bar'}