[New-bugs-announce] [issue13142] Add support for other HTTP methods in urllib.request
report at bugs.python.org
Mon Oct 10 00:26:17 CEST 2011
New submission from Patrick Westerhoff <PatrickWesterhoff at gmail.com>:
I would like to request the support of other HTTP methods (other than GET and POST) in urllib.request. While it’s actually simple enough to override the Request class to add such a possibility, I think it is far too simple to leave it out of the standard library.
I’ve attached a patch that adds the functionality with a simple `method` property. The `get_method` function then simply looks if a custom method was entered, and otherwise falls back to the default behaviour.
Thanks a lot!
Btw. Being a Git user, I hope the patch is actually useful ;)
components: Library (Lib)
title: Add support for other HTTP methods in urllib.request
type: feature request
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file23362/urllib.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce