diff -r c499cc2c4a06 Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Sat Aug 30 00:37:18 2014 +0200 +++ b/Doc/library/urllib.request.rst Fri Aug 29 20:51:18 2014 -0400 @@ -64,8 +64,17 @@ certificate. For http and https urls, this function returns a - :class:`http.client.HTTPResponse` object which has the following - :ref:`httpresponse-objects` methods. + :class:`http.client.HTTPResponse` object slightly modified. The + modifications are: + + * An url attribute, that records the URL requested, is added to the object + + * The msg attribute contains the same information as the + :attr:`~http.client.HTTPResponse.reason` attribute --- the reason phrase + returned by server --- instead of the response headers as it is specified + in :class:`~http.client.HTTPResponse`'s documentation. If you need to, + you can retrieve the response headers using the + :meth:`~http.client.HTTPResponse.getheaders` method. For ftp, file, and data urls and requests explicitly handled by legacy :class:`URLopener` and :class:`FancyURLopener` classes, this function