Message145283
| 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:17 | poke | set | recipients:
+ poke |
| 2011年10月09日 22:26:17 | poke | set | messageid: <1318199177.09.0.985752068879.issue13142@psf.upfronthosting.co.za> |
| 2011年10月09日 22:26:16 | poke | link | issue13142 messages |
| 2011年10月09日 22:26:16 | poke | create |
|