diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-10-16 15:54:44 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-10-16 15:54:44 (GMT) |
commit | de49d64dbcfb108e79a0e42f983ebc2df07219a0 (patch) | |
tree | 8ef0e223f4594aabbb62a28fde5dd7a436a0c714 /Doc/whatsnew/3.3.rst | |
parent | d8886fc831e16ab225f7e474751cc1a7b3cd01df (diff) | |
download | cpython-de49d64dbcfb108e79a0e42f983ebc2df07219a0.zip cpython-de49d64dbcfb108e79a0e42f983ebc2df07219a0.tar.gz cpython-de49d64dbcfb108e79a0e42f983ebc2df07219a0.tar.bz2 |
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 6c57d72..945aa97 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -474,6 +474,16 @@ shutil path also specifying the user/group names and not only their numeric ids. (Contributed by Sandro Tosi in :issue:`12191`) +urllib +------ + +The :class:`~urllib.request.Request` class, now accepts a *method* argument +used by :meth:`~urllib.request.Request.get_method` to determine what HTTP method +should be used. For example, this will send an ``'HEAD'`` request:: + + >>> urlopen(Request('http://www.python.org', method='HEAD')) + +(:issue:`1673007`) Optimizations ============= |