[New-bugs-announce] [issue9845] Allow changing the method in urllib.request.Request

Tarek Ziadé report at bugs.python.org
Mon Sep 13 15:07:15 CEST 2010

New submission from Tarek Ziadé <ziade.tarek at gmail.com>:

Right now you have to override Request or patch its get_method() method to be able to send HTTP requests where the method is not GET or POST.

This is making some assumptions on what the users wants to do with the request. The way get_method guesses the method is good enough in most cases, but I think it would be good to let advanced developers provide their own method when they build a request.  This would avoid unnecessary boiler-plate code to be able to customize the method.

assignee: orsenthil
components: Library (Lib)
files: request_custom_method.patch
keywords: patch
messages: 116301
nosy: orsenthil, tarek
priority: normal
severity: normal
status: open
title: Allow changing the method in urllib.request.Request
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file18869/request_custom_method.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list