各位好
想问个pycurl的问题
以下是网络上的例子
import pycurl
import StringIO
url = "http://www.google.com/"
crl = pycurl.Curl()
crl.setopt(pycurl.VERBOSE,1)
crl.setopt(pycurl.FOLLOWLOCATION, 1)
crl.setopt(pycurl.MAXREDIRS, 5)
crl.fp = StringIO.StringIO()
crl.setopt(pycurl.URL, url)
crl.setopt(crl.WRITEFUNCTION, crl.fp.write)
crl.perform()
print crl.fp.getvalue()
想请问crl.fp.getvalue()所取到的格式是string吗?
因为在url端所传送的格式是dictionary
要怎么改才能取的格式也是dictionary?
还是只能自己parse?
谢谢~