[docs] [issue26864] urllib.request no_proxy check differs from curl

Xiang Zhang report at bugs.python.org
Tue Apr 26 11:41:10 EDT 2016


Xiang Zhang added the comment:

No, urllib.request does not handle the no_proxy environment in case-sensitive way. It first checks if any environment_variable.lower() ends with "_proxy", and then checks if there is any environment_variable ends with "_proxy". So it works as a case insensitive check, but the lowercase one will override others, e.g, no_proxy overrides no_PROXY. But the document is misleading, it should be clarified.

----------
assignee:  -> docs at python
components: +Documentation -Library (Lib)
nosy: +docs at python, martin.panter, xiang.zhang

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26864>
_______________________________________


More information about the docs mailing list