[Twisted-web] twisted.web.client and HEAD

Manlio Perillo manlio_perillo at libero.it
Sun Jul 22 12:36:27 EDT 2007


Jean-Paul Calderone ha scritto:
> On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo 
> <manlio_perillo at libero.it> wrote:
>> Hi all.
>>
>> I'm using Twisted 2.4 on Debian Etch.
>>
>> It seems that twisted.web.client does not handle well HEAD commands.
>>
>> If I do a getPage(url, method='HEAD') I get an exception:
>> twisted.web.client.PartialDownloadError: 200 OK
>>
>>
>> Is this a bug or a feature (since web.client is for page retrivial)?
>>
> 
> What would you like it to do?
> 

It (getPage) should not raise an exception, but simply return the empty 
string.


> Jean-Paul

Regards   Manlio Perillo



More information about the Twisted-web mailing list