This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author poke
Recipients poke
Date 2011-10-09.22:26:16
SpamBayes Score 7.837699e-06
Marked as misclassified No
Message-id <1318199177.09.0.985752068879.issue13142@psf.upfronthosting.co.za>
In-reply-to
Content
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 ;)
History
Date User Action Args
2011-10-09 22:26:17pokesetrecipients: + poke
2011-10-09 22:26:17pokesetmessageid: <1318199177.09.0.985752068879.issue13142@psf.upfronthosting.co.za>
2011-10-09 22:26:16pokelinkissue13142 messages
2011-10-09 22:26:16pokecreate