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.
Created on 2011年10月09日 22:26 by poke, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| urllib.patch | poke, 2011年10月09日 22:26 | Patch for requested feature | ||
| Messages (3) | |||
|---|---|---|---|
| msg145283 - (view) | Author: Patrick Westerhoff (poke) | Date: 2011年10月09日 22:26 | |
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 ;) |
|||
| msg145284 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2011年10月09日 22:36 | |
This is a duplicate of #1673007, and it also has the same patch you wrote. |
|||
| msg145285 - (view) | Author: Patrick Westerhoff (poke) | Date: 2011年10月09日 22:43 | |
Oh sorry, I didn’t see that one. :) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:22 | admin | set | github: 57351 |
| 2011年10月09日 22:43:22 | poke | set | messages: + msg145285 |
| 2011年10月09日 22:36:59 | ezio.melotti | set | status: open -> closed superseder: urllib2 requests history + HEAD support versions: - Python 3.2, Python 3.4 nosy: + ezio.melotti messages: + msg145284 resolution: duplicate stage: resolved |
| 2011年10月09日 22:26:16 | poke | create | |