urllib (and urllib2) read all data from page on open()?

Alex Stapleton alexs at advfn.com
Mon Mar 14 13:59:29 CET 2005


The entire page is downloaded immediately whether you want it to or not when
you do an http request using urllib. This seems slightly broken to me.

Is there anyway to turn this behaviour off and have the objects read method
actually read data from the socket when you ask it to?




More information about the Python-list mailing list