Commit 19048c3a authored by Senthil Kumaran's avatar Senthil Kumaran

Add clarity to the warning on certificate verification in urllib.

parent 72acb664
...@@ -26,11 +26,16 @@ reading, and no seek operations are available. ...@@ -26,11 +26,16 @@ reading, and no seek operations are available.
.. seealso:: .. seealso::
The `Requests package <http://requests.readthedocs.org/>`_ The `Requests package <http://docs.python-requests.org/>`_
is recommended for a higher-level HTTP client interface. is recommended for a higher-level HTTP client interface.
.. warning:: When opening HTTPS URLs, it does not attempt to validate the .. versionchanged:: 2.7.9
server certificate. Use at your own risk!
For HTTPS URIs, :mod:`urllib` performs all the neccessary certificate and hostname checks by default.
.. warning::
For Python versions earlier than 2.7.9, urllib does not attempt to validate the server certificates of HTTPS URIs. Use at your own risk!
High-level interface High-level interface
...@@ -142,7 +147,7 @@ High-level interface ...@@ -142,7 +147,7 @@ High-level interface
:envvar:`no_proxy` environment variable. :envvar:`no_proxy` environment variable.
.. versionchanged:: 2.7.9 .. versionchanged:: 2.7.9
The *context* parameter was added. The *context* parameter was added. All the neccessary certificate and hostname checks are done by default.
.. deprecated:: 2.6 .. deprecated:: 2.6
The :func:`urlopen` function has been removed in Python 3 in favor The :func:`urlopen` function has been removed in Python 3 in favor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment