We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/orsenthil' closed_at = <Date 2009-10-11.06:08:53.696> created_at = <Date 2009-09-12.10:12:27.763> labels = ['type-bug', 'library'] title = 'urllib2 doesn\'t respect "no_proxy" environment (python2.6.2)' updated_at = <Date 2009-10-11.06:08:53.620> user = 'https://bugs.python.org/xelnor'
bugs.python.org fields:
activity = <Date 2009-10-11.06:08:53.620> actor = 'orsenthil' assignee = 'orsenthil' closed = True closed_date = <Date 2009-10-11.06:08:53.696> closer = 'orsenthil' components = ['Library (Lib)'] creation = <Date 2009-09-12.10:12:27.763> creator = 'xelnor' dependencies = [] files = ['14880'] hgrepos = [] issue_num = 6894 keywords = ['patch'] message_count = 4.0 messages = ['92538', '93848', '93849', '93850'] nosy_count = 3.0 nosy_names = ['orsenthil', 'Arfrever', 'xelnor'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue6894' versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']
The text was updated successfully, but these errors were encountered:
I discovered recently that urllib2 doesn't respect the "no_proxy" environment variable on linux (and on other platforms too, I think).
Here is an example of the problem :
proxy_handler = urllib2.ProxyHandler() opener = urllib2.build_opener(proxy_handler) urllib2.install_opener(opener)
and then open an "outside" url : everything is OK (urllib2 reads correctly http_proxy), but for "localhost", it tries to open it through the proxy.
You would expect urllib2 to understand no_proxy, all the more since all the needed code is already available in urllib.
I have prepared a patch for urllib2 which does correct that bug.
I don't have other versions of python installed, so I couldn't check that se bug is still present there.
Sorry, something went wrong.
Fixed in trunk and Committed revision 75333.
merged into py3k revision 75334 merged into release-26maint revision 75335.
merged in release31-maint in revision 75336
Closing the issue.
orsenthil
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: