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)? Thanks Manlio Perillo
On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo <manlio_perillo@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? Jean-Paul
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo <manlio_perillo@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
On Sun, 22 Jul 2007 18:36:27 +0200, Manlio Perillo <manlio_perillo@libero.it> wrote:
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo <manlio_perillo@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.
That sounds reasonable. Care to work up a patch? Jean-Paul
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 18:36:27 +0200, Manlio Perillo <manlio_perillo@libero.it> wrote:
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo <manlio_perillo@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.
That sounds reasonable. Care to work up a patch?
Ok. I have found another possible bug. getPage does not checks that the URI scheme is http.
Jean-Paul
Regards Manlio Perillo
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 18:36:27 +0200, Manlio Perillo <manlio_perillo@libero.it> wrote:
Jean-Paul Calderone ha scritto:
On Sun, 22 Jul 2007 14:44:18 +0200, Manlio Perillo <manlio_perillo@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.
That sounds reasonable. Care to work up a patch?
Done: http://twistedmatrix.com/trac/ticket/2750 Regards Manlio Perillo
participants (2)
-
Jean-Paul Calderone -
Manlio Perillo