httplib slow read
John Hunter
jdhunter at nitace.bsd.uchicago.edu
Thu Dec 6 13:54:28 EST 2001
>>>>> "Kjetil" == Kjetil Jacobsen <setattr at yahoo.no> writes:
Kjetil> another option may be to use the pycurl module which wraps
Kjetil> the curl library:
Thanks for the tip. I have installed it and it looks nice. One thing
I have not been able to figure out is how to direct pycurl to print
the HTTP header it would send were I too invoke 'perform'.
Something like
import pycurl
c = pycurl.init()
c.setopt(pycurl.URL, 'http://www.python.org')
c.setopt(pycurl.REFERER, 'http://www.yahoo.com)
# tried this but it ain't right.
print pycurl.HTTPHEADER
How can I do this?
Aside from the internal __doc__ and the cURL pages and the
pycurl/tests files, is there any documentation I should be aware of?
Thanks,
John Hunter
More information about the Python-list
mailing list