Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(74130)

Unified Diff: Doc/library/urllib.request.rst

Issue 22417: PEP 476: verify HTTPS certificates by default
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/http.client.rst ('k') | Doc/library/xmlrpc.client.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/urllib.request.rst Sun Nov 02 22:19:56 2014 +0200
+++ b/Doc/library/urllib.request.rst Mon Nov 03 09:50:32 2014 -0800
@@ -62,11 +62,6 @@
*cafile* and *capath* parameters are omitted. This will only work on
some non-Windows platforms.
- .. warning::
- If neither *cafile* nor *capath* is specified, and *cadefault* is ``False``,
- an HTTPS request will not do any verification of the server's
- certificate.
-
For http and https urls, this function returns a
:class:`http.client.HTTPResponse` object which has the following
:ref:`httpresponse-objects` methods.
@@ -115,8 +110,8 @@
.. versionchanged:: 3.3
*cadefault* was added.
- .. versionchanged:: 3.5
- *context* was added.
+ .. versionchanged:: 3.4.3
+ *context* was added, and this function now performs all the necessary certificate and hostname checks by default for *https* URLS.
.. function:: install_opener(opener)
« no previous file with comments | « Doc/library/http.client.rst ('k') | Doc/library/xmlrpc.client.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+