[issue13142] Add support for other HTTP methods in urllib.request

Patrick Westerhoff report at bugs.python.org
Mon Oct 10 00:26:17 CEST 2011


New submission from Patrick Westerhoff <PatrickWesterhoff at gmail.com>:

Hey,

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!

Patrick Westerhoff

Btw. Being a Git user, I hope the patch is actually useful ;)

----------
components: Library (Lib)
files: urllib.patch
keywords: patch
messages: 145283
nosy: poke
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue13142>
_______________________________________


More information about the Python-bugs-list mailing list