httplib slow read

John Hunter jdhunter at nitace.bsd.uchicago.edu
Wed Dec 5 15:55:54 CET 2001


>>>>> "Toby" == Toby Dickenson <tdickenson at devmail.geminidataloggers.co.uk> writes:

    Toby> It could well be a problem with your hand-crafted http
    Toby> request. I suggest you go with urllib.

I needed to set some headers, like Referer and Cookie, which is why I
went with httplib.  I sniffed port 80 to find out how what was being
sent by my browser, and then constructed the headers from that info,
so I think my headers were ok.  Can't say for sure.

I suppose the headers can also be set with the urlencode format of
urllib, so this is probably the way to go; thanks for the suggestion.
Still curious why the read is so slow with httplib, though.

John Hunter 




More information about the Python-list mailing list