Arthur Gouveia Web Developer |
|
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Montréal-Python.
Pour envoyer un message à ce groupe, adressez un e-mail à montrea...@googlegroups.com.
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse montrealpytho...@googlegroups.com.
Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/montrealpython?hl=fr-CA
The API I need to do a POST to only accepts application/x-www-form-urlencoded
Any ideas on how to solve this problem?
My request is basically done like this: http://pastebin.com/KT0TywVP
The urlencode() function does not serialize nested dictionaries
because nested dicts do not have a universally agreed-on meaning in
URL params. The API that you are using is implementing a very
specific approach and you can't expect the Python standard library to
accommodate every possible API there is out there.
Your solution, "data[email]", is good. There is nothing wrong about it.
--
Yannick Gingras
http://ygingras.net