HTTP HEAD and docxmlrpcserver

Christopher Mahan chris.mahan at gmail.com
Thu May 14 03:29:36 EDT 2009


On Thu, May 14, 2009 at 12:13 AM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar>wrote:

> En Mon, 11 May 2009 04:23:29 -0300, Christopher Mahan <
> chris.mahan at gmail.com> escribió:
>
>  I have a docxmlrpcserver install (kissws.com) that's returning HTTP code
>> 501
>> when the client makes a HEAD request.
>>
>> Any idea as to whether that's by design?
>>
>
> Yes. The XMLRPC spec defines only the POST request; DocXMLRPCServer extends
> the definition so a GET request is interpreted as a documentation query. Any
> other method remains undefined and generates a "501 Unsupported method
> (xxx)" response.
>
> If you do need HEAD, extend DocXMLRPCRequestHandler to define a do_HEAD
> method (same as do_GET but without actually sending the response entity).
>
> --
> Gabriel Genellina
>


Thank you.

Chris Mahan
chris.mahan at gmail.com
gv (818) 671-1709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090514/eda9e79d/attachment.html>


More information about the Python-list mailing list