[issue1673007] urllib2 requests history + HEAD support

David Stanek report at bugs.python.org
Wed Aug 4 05:55:15 CEST 2010


David Stanek <dstanek at dstanek.com> added the comment:

I have attached a patch to add support for HEAD, PUT and DELETE methods. The code review is available here: http://codereview.appspot.com/1696061.

I have started working on another patch that validates that the method is properly set. For instance, it doesn't make sense to have a HEAD or DELETE with post data. The problem is that the interface is so wide open that it is hard to catch all possible user errors. A user could call Request.__init__ correctly, but then set req.method to an invalid method. If there is some interest I'll finish up the patch.

----------
nosy: +dstanek
Added file: http://bugs.python.org/file18369/1673007_methods.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1673007>
_______________________________________


More information about the Python-bugs-list mailing list