httplib slow read
John Hunter
jdhunter at nitace.bsd.uchicago.edu
Tue Dec 4 10:39:44 EST 2001
I am using httplib to make GET requests. I save the results in a file
with
of = open(fname, 'w')
f = h.getfile()
data = f.read()
print 'Writing %s' % fname
of.write( data )
where h is the httplib object.
The problem is that the read command is slow; much slower than if I
make the same request via my browser.
Is there a faster way to transfer the data into a file?
Thanks,
John Hunter
More information about the Python-list
mailing list