[Twisted-Python] web2: http Content-Length header

David Reid dreid at dreid.org
Tue Dec 5 17:54:41 MST 2006


On Dec 5, 2006, at 1:55 PM, Pieter Grimmerink wrote:

> On Monday 04 December 2006 22:16, Pieter Grimmerink wrote:
>> Is it really necessary to remove the content-length header from the
>> response?
>
> Correction, it turns out indeed it has to be removed. If it isn't  
> stripped
> from the response, somehow the download stops after a single block  
> of data
> has been received.
>
> Since the content-length is saved in self.length, the following  
> could be a
> workaround (and it does work fine here):

Why don't you just use self.length when showing the progress?
-David

David Reid
http://dreid.org/






More information about the Twisted-Python mailing list