[Answer]-Pass post data curl django

1👍

You might want to take a look at the requests library, but a simple POST does not require anything more than what comes built in to python:

import urllib
import urllib2
data = urllib.urlencode({"email":"suporte@lojamodelo.com.br","token":...})
req = urllib2.Request("https://ws.pagseguro.uol.com.br/v2/checkout/", data)
response = urllib2.urlopen(req)

Leave a comment