[issue12614] Allow to explicitly set the method of urllib.request.Request

Miki Tebeka report at bugs.python.org
Fri Jul 22 19:51:27 CEST 2011


New submission from Miki Tebeka <miki.tebeka at gmail.com>:

Currently urllib.request.Request decides if it's a "GET" or "POST" by the presence of data. However sometimes you want to do an "POST" request without data (in my case, it Crucible REST API). Or provide another method. The attached patched added a `method` argument to Request __init__.

----------
files: request-method.diff
keywords: patch
messages: 140898
nosy: tebeka
priority: normal
severity: normal
status: open
title: Allow to explicitly set the method of urllib.request.Request
versions: Python 3.2
Added file: http://bugs.python.org/file22717/request-method.diff

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


More information about the Python-bugs-list mailing list