httplib slow read

John Hunter jdhunter at
Thu Dec 6 13:54:28 EST 2001

>>>>> "Kjetil" == Kjetil Jacobsen <setattr at> 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, '')
c.setopt(pycurl.REFERER, '

# 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?

John Hunter 

More information about the Python-list mailing list