Jean-Paul Calderone <exar...@divmod.com> wrote: > On Tue, 17 Mar 2009 15:17:56 +0000 (UTC), "R. David Murray" > <rdmur...@bitdance.com> wrote: > >Jean-Paul Calderone <exar...@divmod.com> wrote: > >> On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh <phoneth...@gmail.com> wrote: > >> >> This isn't exactly how things work. The server *sends* you bytes. It > >> >> can > >> >> send you a lot at once. To some extent you can control how much it > >> >> sends > >> >> before it waits for you to catch up, but you don't have anywhere near > >> >> byte-level control (you might have something like 32kb or 64kb level > >> >> control). > >> > > >> >What abt in Python3 ? > >> >It seems to have some header like the one below : b'b495 - binary mode > >> >with 46229 bytes ? Or is it something else ? > >> > >> That's just a bug in urllib in Python 3.0. > > > >What makes you say that's a bug? Did I miss something? (Which is entirely > >possible!) > > I saw it in the Python issue tracker. :) Python 3.0 broke handling of > chunked HTTP responses. Instead of interpreting the chunk length prefixes, > it delivered them as part of the response.
Ah, got you. Thanks for the info. -- R. David Murray http://www.bitdance.com -- http://mail.python.org/mailman/listinfo/python-list