]> granicus.if.org Git - python/commitdiff
Merged revisions 84234 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Sat, 21 Aug 2010 16:14:54 +0000 (16:14 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sat, 21 Aug 2010 16:14:54 +0000 (16:14 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84234 | senthil.kumaran | 2010-08-21 21:38:32 +0530 (Sat, 21 Aug 2010) | 3 lines

  Add info about HTTP/1.1 and Connection:Close header.
........

Doc/library/urllib2.rst

index b8f22775364e419d5b21f312de3ca3228eb30032..973c098eb2c77e605f3bece54aefcbb1d1c094a8 100644 (file)
@@ -31,7 +31,8 @@ The :mod:`urllib2` module defines the following functions:
    *data* parameter is provided.  *data* should be a buffer in the standard
    :mimetype:`application/x-www-form-urlencoded` format.  The
    :func:`urllib.urlencode` function takes a mapping or sequence of 2-tuples and
-   returns a string in this format.
+   returns a string in this format. urllib2 module sends HTTP/1.1 requests with
+   `Connection:close` header included.
 
    The optional *timeout* parameter specifies a timeout in seconds for blocking
    operations like the connection attempt (if not specified, the global default