我在PHP中熟知CURL,但第一次用这种语言在Avul和Pycurl使用。
我保留错误:
Exception Type: error
Exception Value: (2, )
我不知道这可能意味着什么。 我的守则是:
data = { cmd : _notify-synch ,
tx : str(request.GET.get( tx )),
at : paypal_pdt_test
}
post = urllib.urlencode(data)
b = StringIO.StringIO()
ch = pycurl.Curl()
ch.setopt(pycurl.URL, https://www.sandbox.paypal.com/cgi-bin/webscr )
ch.setopt(pycurl.POST, 1)
ch.setopt(pycurl.POSTFIELDS, post)
ch.setopt(pycurl.WRITEFUNCTION, b.write)
ch.perform()
ch.close()
这一错误指的是<代码>ch.setopt(pycurl)。 POSTFIELDS,员额