[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2018-02-04 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: I encountered this bug while testing the code in this StackOverflow answer: https://stackoverflow.com/a/48565011/1600898 The code at the end of the answer runs on Python 3.5, but fails on 3.6 with the "unexpected keyword argument

[issue32465] [urllib] proxy_bypass_registry - extra error handling required for ProxyOverride, Windows under proxy environment

2017-12-31 Thread chansol kim
New submission from chansol kim <chans...@gmail.com>: [Problem] - String value from registry Proxy override is read and incorrectly decides the current connection requires not to use proxy. [Setup] - Using urllib under proxy environment. - Proxy bypass settings are in place. ProxyOv

Re: Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
On Mon, Dec 18, 2017 at 1:00 PM, Matt Wheeler <m...@funkyhat.org> wrote: > On Mon, 18 Dec 2017, 15:45 Ray Cote, <rgac...@appropriatesolutions.com> > wrote: > >> Looking to deploy a locally cached pypi proxy service. >> >> Is there a recommended/pre

Re: Recommended pypi caching proxy?

2017-12-18 Thread Matt Wheeler
On Mon, 18 Dec 2017, 15:45 Ray Cote, <rgac...@appropriatesolutions.com> wrote: > Looking to deploy a locally cached pypi proxy service. > > Is there a recommended/preferred pypi caching tool? > I’ve found: > - proxypypy > - Flask-Pypi-Proxy > - pypicache &g

Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
Hello list: Looking to deploy a locally cached pypi proxy service. Is there a recommended/preferred pypi caching tool? I’ve found: - proxypypy - Flask-Pypi-Proxy - pypicache All of which seem to have generally the same functionality and all of which are a few years old. Recommendations

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2017-12-12 Thread Jordan Speicher
Change by Jordan Speicher : -- keywords: +patch pull_requests: +4709 stage: -> patch review ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2017-11-27 Thread Alexander Prokhorov
Change by Alexander Prokhorov : -- nosy: +Alexander Prokhorov ___ Python tracker ___ ___

Re: install on host not connected to the internet and no local proxy

2017-11-02 Thread Paul Moore
On 2 November 2017 at 07:17, Chris Angelico <ros...@gmail.com> wrote: > On Thu, Nov 2, 2017 at 5:50 PM, Noah <noah-l...@enabled.com> wrote: >> Hi, >> >> I am trying to install a python package with about 80 dependencies on a >> server that is not connected

Re: install on host not connected to the internet and no local proxy

2017-11-02 Thread Chris Angelico
On Thu, Nov 2, 2017 at 5:50 PM, Noah <noah-l...@enabled.com> wrote: > Hi, > > I am trying to install a python package with about 80 dependencies on a > server that is not connected to the internet and has no local proxy. I can > ssh to it via VPN. > > I was able to find

install on host not connected to the internet and no local proxy

2017-11-02 Thread Noah
Hi, I am trying to install a python package with about 80 dependencies on a server that is not connected to the internet and has no local proxy. I can ssh to it via VPN. I was able to find python bundle and download the tarballs for all the main python package and all the tarballs

[issue31704] HTTP check lowercase response from proxy

2017-10-05 Thread Álvaro Muñoz
New submission from Álvaro Muñoz <alvaro.mu...@gmail.com>: Recently faced an issue with a proxy responding in lowercase http, which caused this: ProtocolError('Connection aborted.', BadStatusLine('http/1.1 200 connection established\r\n',)) Changing the string to uppercase before ch

How to get the webpage with socks5 proxy in python3?

2017-09-23 Thread Length Power
socks5 proxy. The app provided socks5 proxy service is shadowsocks client on my pc. curl can work with socks proxy in my pc. target="target_url_youtube" curl --socks5-hostname 127.0.0.1:1080 $target -o /tmp/sample The target url can be downloaded with scoks5 pro

How to get the webpage with socks5 proxy in python3?

2017-09-23 Thread Length Power
socks5 proxy. The app provided socks5 proxy service is shadowsocks client on my pc. curl can work with socks proxy in my pc. target="target_url_youtube" curl --socks5-hostname 127.0.0.1:1080 $target -o /tmp/sample The target url can be downloaded with scoks5 proxy in curl. s

[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2017-09-07 Thread Davin Potts
Davin Potts added the comment: It appears that the multiple workarounds proposed by the OP (@allista) address the original request and that there is no bug or unintended behavior arising from multiprocessing itself. Combined with the lack of activity in this discussion, I'm inclined to

[issue30790] Can't use proxy to connect internet on windows

2017-07-06 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2676 ___ Python tracker ___ ___

[issue30790] Can't use proxy to connect internet on windows

2017-07-03 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2623 ___ Python tracker ___ ___

[issue30790] Can't use proxy to connect internet on windows

2017-07-02 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2602 ___ Python tracker ___ ___

urllib.request with proxy and HTTPS

2017-06-30 Thread Pavel Volkov
Hello, I'm trying to make an HTTPS request with urllib. OS: Gentoo Python: 3.6.1 openssl: 1.0.2l This is my test code: = CODE BLOCK BEGIN = import ssl import urllib.request from lxml import etree PROXY = 'proxy.vpn.local:' URL = "https://google.com;

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2529 ___ Python tracker ___ ___

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- resolution: -> wont fix ___ Python tracker ___ ___

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2522 ___ Python tracker ___ ___

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong <wuzon...@mail.ustc.edu.cn>: -- components: Library (Lib) nosy: Cordius priority: normal severity: normal status: open title: Can't use proxy to connect internet on windows type: behavior versions: Python 3.6 ___ Python t

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2017-05-03 Thread Jeff DuMonthier
New submission from Jeff DuMonthier: In multiprocessing, attempting to add a Queue proxy to a dict or Namespace proxy (all returned by the same SyncManager) raises an exception indicating a keyword argument 'manager_owned=True' has been passed to the function AutoProxy

[issue29533] urllib2 works slowly with proxy on windows

2017-04-20 Thread Marc Schlaich
Marc Schlaich added the comment: Well, you can read the proxy settings from registry and write them to os.environ (no_proxy needs to be transformed as it has a different format). This will only take effect for the current process. -- ___ Python

[issue29533] urllib2 works slowly with proxy on windows

2017-04-20 Thread Julia Dolgova
Julia Dolgova added the comment: I'm not sure that users of my program will like if I define such variables in their systems -- ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-04-20 Thread Marc Schlaich
Marc Schlaich added the comment: BTW, you can workaround this issue by defining the `http_proxy` and `no_proxy` environment variables. In this case urllib isn't doing any DNS request. -- ___ Python tracker

[issue29533] urllib2 works slowly with proxy on windows

2017-04-19 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behaviour of urllib with these browsers: Firefox("use system proxy" selected), Google Chrome, Yandex. And also Skype (requests to login.live.com). All of them are not doing DNS requests for proxy bypass handling as Marc expects.

[issue29533] urllib2 works slowly with proxy on windows

2017-04-18 Thread Marc Schlaich
Marc Schlaich added the comment: Julia, could you please add other major browsers/HTTP clients (Firefox, Chrome, curl, ...) to your comparison (compare_ie_urllib.txt). I would expect that Python/urllib is the only implementation doing DNS requests for proxy bypass handling. Please note

[issue29533] urllib2 works slowly with proxy on windows

2017-04-06 Thread Marc Schlaich
Marc Schlaich added the comment: This could be even a security issue. People might rely on a proxy as a privacy feature. In this case the proxy should do forward/reverse DNS requests and not the client. Doing DNS lookups to check for proxy bypass doesn't seem right. I don't think that major

[issue29533] urllib2 works slowly with proxy on windows

2017-04-06 Thread Julia Dolgova
Julia Dolgova added the comment: Steve, do you mean that there should be no address to IE configuration from urllib? I could undertake it if I understand the task. gethostbyaddr() is ok. It just makes a reverse lookup, that some dns-servers work up too slow. The command "nslookup" also works

[issue29533] urllib2 works slowly with proxy on windows

2017-03-30 Thread Steve Dower
Steve Dower added the comment: I think the point is that we don't want to be grabbing settings like this from other configuration locations. Ideally, there'd be a way to provide a list of "don't bypass the proxy for these names", which a caller could then read from the IE con

[issue29251] Class __dict__ is only a mapping proxy

2017-03-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I believe the docs defined that, usually using a bold "CPython implementation detail" sentence. It seems like it's something that would be considered an implementation detail, though, according to Raymond's answer here:

[issue29533] urllib2 works slowly with proxy on windows

2017-03-30 Thread Julia Dolgova
Julia Dolgova added the comment: Ok, but may be there are some Windows users, that have different opinion, who prefer to put up with this bug for the benefit of better performance. Could you leave them an opportunity to refuse this behavior of urllib? --

[issue29533] urllib2 works slowly with proxy on windows

2017-03-30 Thread Paul Moore
Paul Moore added the comment: The behaviour you're describing for IE sounds like a bug to me. If you specify a host that should bypass the proxy, then that's what should happen - it shouldn't matter if you specify the host by IP address or by name. I'm -1 on Python trying to match IE bugs

[issue29533] urllib2 works slowly with proxy on windows

2017-03-29 Thread Julia Dolgova
Julia Dolgova added the comment: May be I described the problem not clearly enough, because English is not my native language, so I try to explain once again. In Windows there is an option "Do not use proxy server for address beginning with". I call this option . This option i

[issue29251] Class __dict__ is only a mapping proxy

2017-03-27 Thread Martin Panter
Martin Panter added the comment: I don’t know if it is an implementation detail or not. Maybe it is the documentation itself which defines that. Anyway, I think your wording would have been fine for my original problem. I wonder if we should clarify that only reading the mapping is supported,

[issue29251] Class __dict__ is only a mapping proxy

2017-03-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Isn't the fact that it's read-only a CPython implementation detail? That is, shouldn't that just read: "gives a :term:`mapping` object representing the class's namespace" so as to not enforce anything on any other implementations? -- nosy:

[issue29533] urllib2 works slowly with proxy on windows

2017-03-25 Thread Julia Dolgova
Julia Dolgova added the comment: Could someone look into my PR, please... -- ___ Python tracker ___ ___

[issue8238] Proxy handling very slow

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue29687] smtplib does not support proxy

2017-03-01 Thread Rares Vernica
New submission from Rares Vernica: smtplib does not support connections through a proxy. The accepted workaround is something like: ``` import smtplib import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, proxy_host, proxy_port) socks.wrapmodule(smtplib) smtp = smtplib.SMTP

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Changes by Julia Dolgova : -- pull_requests: +212 ___ Python tracker ___ ___ Python-bugs-list

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Julia Dolgova added the comment: I added variable smart_proxy_bypass into request module. If it's False then checking IP and FQDN of the host is skipped in proxy_bypass_registry function. I set the default value to False, because I think it's better when the behaviour of urllib corresponds

[issue29610] ssl do_handshake fails on https-proxy (aka. https over https-proxy)

2017-02-20 Thread Martin Panter
Martin Panter added the comment: It looks like you are trying to tunnel one SSL or TLS connection through another SSL/TLS connection (instead of through a plain OS socket). There is already a bug recently opened about this: Issue 29394. Basically, the SSL module doesn’t support this, and the

[issue29610] ssl do_handshake fails on https-proxy (aka. https over https-proxy)

2017-02-20 Thread Phus Lu
Changes by Phus Lu : -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes versions: +Python 3.5 ___ Python tracker

[issue29610] ssl do_handshake fails on https-proxy (aka. https over https-proxy)

2017-02-20 Thread Phus Lu
New submission from Phus Lu: Background: I'm working on adding https-proxy[1] support to python-requests https://github.com/phuslu/requests_httpsproxy Issue: ssl module(python 2.7) counld establish ssl handshakes over a https-proxy Reproduce Steps: I setup a https-proxy in bwg.phus.lu:443

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: http://bugs.python.org/issue23384 - same problem -- ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: Why not to take it into account? Imagine that someone wants that requests to "ovinnik.canonical.com" should bypass proxy and requests to "ubuntu.com" souldn't. I don't know what for, it's just an assumption. He adds a hostname &q

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Steve Dower
Steve Dower added the comment: My guess is that IE is implemented using lower level APIs and it can choose whether to bypass based on its own list. There's no reason for any other software to take its settings into account. That said, it would be great if urllib can avoid adding long delays,

[issue29533] urllib2 works slowly with proxy on windows

2017-02-18 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behavior of IE and urllib. I put different addresses to the ("Do not use proxy server for address beginning with" setting), made different requests through IE and urllib and watched if the proxy was bypassed. IE doesn't even make a f

[issue29533] urllib2 works slowly with proxy on windows

2017-02-18 Thread Julia Dolgova
Julia Dolgova added the comment: The issue applies to 3.6 as well. I agree that the replacement of gethostbyaddr with gethostbyname_ex is not a solution. But is there a way to check whether a hostname is in the that doesn't bring to the reverse lookup? I suppose that IE doesn't make a

[issue29533] urllib2 works slowly with proxy on windows

2017-02-16 Thread Julia Dolgova
Julia Dolgova added the comment: I sincerely appreciate your time. Thank you very much for your answer. I'll try to test this on python 3.5 -- ___ Python tracker

[issue29533] urllib2 works slowly with proxy on windows

2017-02-16 Thread Eryk Sun
Eryk Sun added the comment: gethostbyname_ex won't do a reverse lookup on an IP to get the fully-qualified domain name, which seems pointless for a function named getfqdn. I think calling gethostbyaddr is intentional here and goes back to the Python 1.x days. Also, FYI, socket_gethostbyaddr

[issue29533] urllib2 works slowly with proxy on windows

2017-02-16 Thread Steve Dower
Steve Dower added the comment: There's a few reasons why you haven't heard a reply. First among them is that we're all volunteers with limited free time, and second is that we just migrated to github and all that free time is being consumed right now. Python 2.7 is only receiving security

[issue29533] urllib2 works slowly with proxy on windows

2017-02-15 Thread Julia Dolgova
Julia Dolgova added the comment: Surely noone is concerned that programms written on python could work better when addressing to "python.org"? -- ___ Python tracker

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova : -- keywords: +patch Added file: http://bugs.python.org/file46632/socket.patch ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova : Added file: http://bugs.python.org/file46630/test.py ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova : Added file: http://bugs.python.org/file46631/log.txt ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
Changes by Julia Dolgova : Added file: http://bugs.python.org/file46629/socket.py ___ Python tracker ___

[issue29533] urllib2 works slowly with proxy on windows

2017-02-11 Thread Julia Dolgova
New submission from Julia Dolgova: I've found that urllib works sometimes slowly on windows with proxy. To reproduce the issue: on Windows: 1. Turn on the option "use proxy" in "browser settings" in "control panel". No real proxy needed. The problem will come

[issue29251] Class __dict__ is only a mapping proxy

2017-01-12 Thread Martin Panter
New submission from Martin Panter: The __dict__ attribute of class objects is documented as being a (standard) dictionary, but implemented with a proxy object. I propose to clarify the documentation in “Custom classes” under <https://docs.python.org/3.5/reference/datamodel.html#the-stand

[issue7291] urllib2 cannot handle https with proxy requiring auth

2016-12-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2016-12-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Modify target versions to bugfix and feature branches -- versions: +Python 3.7 -Python 2.6, Python 3.4 ___ Python tracker

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-09 Thread Attila Vangel
Attila Vangel added the comment: Thanks for fixing this issue. I checked the changed documentation online, and I came up with a very similar solution. One difference is that although this example overrides the make_connection() method, but omits the following lines which are present in the

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-09 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94c9c314f5d9 by Berker Peksag in branch '3.5': Issue #28389: Fix ProxiedTransport example in xmlrpc.client documentation https://hg.python.org/cpython/rev/94c9c314f5d9 New changeset 60c5c77c0190 by Berker Peksag in branch '3.6': Issue #28389: Merge

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag
Changes by Berker Peksag : -- type: crash -> behavior versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel
Attila Vangel added the comment: It's my pleasure. It was somewhat similar: - the set_proxy() is the same - for the make_connection() I gave the necessary clues, so one can create the code and you can use that in a way that I don't have to spend time on the PSF Contributor Agreement -

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks. I guess your solution was similar to the attached patch? -- keywords: +patch stage: -> patch review type: crash -> behavior versions: +Python 3.6, Python 3.7 -Python 3.4 Added file: http://bugs.python.org/file45016/issue28389.diff

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel
8859-1") File "/usr/lib/python3.5/socket.py", line 575, in readinto return self._sock.recv_into(b) ConnectionResetError: [Errno 104] Connection reset by peer However, meanwhile I studied a bit the http.client API on how to use HTTP proxy, and I found set_tunnel() can

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. Can you try the attached script? -- nosy: +berker.peksag Added file: http://bugs.python.org/file45014/proxy.py ___ Python tracker

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel
Attila Vangel added the comment: I tested it also on Python 3.4.3. I got the same error. -- ___ Python tracker ___

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel
Changes by Attila Vangel : -- versions: +Python 3.4 ___ Python tracker ___ ___

[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel
New submission from Attila Vangel: Go to https://docs.python.org/3/library/xmlrpc.client.html Under '21.26.8. Example of Client Usage' -> 'To access an XML-RPC server through a HTTP proxy, you need to define a custom transport. The following example shows how:' copy the example code to a

[issue8238] Proxy handling very slow

2016-07-17 Thread Martin Panter
ing superseder: -> proxy_bypass in urllib handling of macro title: Proxy handling -> Proxy handling very slow ___ Python tracker <rep...@bugs.python.org> <http://bugs.py

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-06-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Unfortunately no. 3.4 is only in security fixes mode and this doesn't qualify as a security fix. Usually the bug fixes and feature additions are incentives for developers to upgrade their python codebase. -- ___

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-06-14 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: In a couple of systems, I have to stick with 3.4. Is there a chance to have this patch in 3.4 as well, if a new release 3.4 is made? -- ___ Python tracker

[issue19012] urllib2: bad proxy configuration throws "getaddrinfo" error

2016-06-01 Thread R. David Murray
R. David Murray added the comment: Closing because no reproducer provided. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all versions of Python. Thank you for your contribution, Hans-Peter Jansen. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c502deb19cb0 by Senthil Kumaran in branch '2.7': backport fix for Issue #26804. https://hg.python.org/cpython/rev/c502deb19cb0 -- ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49b975122022 by Senthil Kumaran in branch '3.5': Issue #26804: urllib.request will prefer lower_case proxy environment variables https://hg.python.org/cpython/rev/49b975122022 New changeset 316593f5bf73 by Senthil Kumaran in branch 'default': merge

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-25 Thread Martin Panter
Martin Panter added the comment: V7 looks good to me -- stage: patch review -> commit review ___ Python tracker ___

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-25 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: v7: - reorder test code in order to improve edibility -- Added file: http://bugs.python.org/file42586/python-urllib-prefer-lowercase-proxies-v7.diff ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-24 Thread Martin Panter
Martin Panter added the comment: Yes that was my rambling way of saying that I had checked to see if they were in the right place, and reporting that it was all okay :) New patch seems okay to me. -- ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-24 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: > In Python 2, it looks like the proxy_bypass_etc() functions are defined > in urllib and imported into urllib2, so it makes sense to include the > tests in test_urllib rather than test_urllib2. The tests are in test_urllib. test_urllib2 is test

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-24 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: * blatant error fixed * one test case added -- Added file: http://bugs.python.org/file42582/python-urllib-prefer-lowercase-proxies-v6.diff ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-22 Thread Martin Panter
Martin Panter added the comment: I found two bugs; see the comments. In Python 2, it looks like the proxy_bypass_etc() functions are defined in urllib and imported into urllib2, so it makes sense to include the tests in test_urllib rather than test_urllib2. Technically I think

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-22 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: v5: don't require the proxies argument in proxy_bypass_environment() -- Added file: http://bugs.python.org/file42565/python-urllib-prefer-lowercase-proxies-v5.diff ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-21 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: Here's the finalized version of this patch, including unit tests. -- Added file: http://bugs.python.org/file42552/python-urllib-prefer-lowercase-proxies-v4.diff ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-21 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: Here we go: v3 fixes following issues: * prefer lowercase proxy environment settings, if multiple (disagreeing) settings are specified with differing case schemes (e.g. HTTP_PROXY vs. http_proxy) * an empty proxy variable value resets the related setting

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-20 Thread Martin Panter
Martin Panter added the comment: The second patch looks reasonable (I left one minor grammar comment). About getproxies_environment(), I meant that if you set no_proxy="", it may be ignored if NO_PROXY=. . . is also set. E.g. if you already have these set: http_proxy=http://prox

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-20 Thread Hans-Peter Jansen
a call to get_proxies preceding the call to proxy_bypass_environment, we could add a second argument to the latter, passing in the proxy dict, that is thrown away at the moment. Since that carries a 'no' key already, if it exists, using it here would fix this ambiguity. While at it, fix up

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-20 Thread Hans-Peter Jansen
Hans-Peter Jansen added the comment: Hi Martin, hi Senthil, thanks for the valuable comments. Will incorporate your suggestions later today. Yes, Martin, it's a bug, and should be fixed for 2.7 and 3.5 as well, but I was unsure, if I get some feedback at all... Hence, this is a very nice

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-20 Thread Martin Panter
Martin Panter added the comment: It’s not just documentation, it is a real bug. If you run http_proxy="" HTTP_PROXY=http://bad-proxy python . . . the empty value of lowercase “http_proxy” should have priority over the other one. At the moment it depends on the order of os.env

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Hans-Peter, I agree with Martin's comments and suggestion. If I understand the suggestion correctly, the only change will be a documentation change. Isn't it? Because getproxies_environment() in it's current form already fetches the lower_case proxy

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-19 Thread Martin Panter
Martin Panter added the comment: I think this should be applied as a bug fix to 2.7 and 3.5 as well. What do you think? Lowercase is the normal way to use these variables. I left some comments on the code review. A similar bug seems to exist for the “no_proxy” variable. Also, it would be

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-19 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) -Extension Modules nosy: +orsenthil stage: -> patch review ___ Python tracker

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-19 Thread Hans-Peter Jansen
Changes by Hans-Peter Jansen : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue26804] Prioritize lowercase proxy variables in urllib.request

2016-04-19 Thread Hans-Peter Jansen
New submission from Hans-Peter Jansen: During programming a function, that replaces a wget call, I noticed, that something is wrong with urllibs proxy handling. I usually use the scheme "http_proxy= wget -N -nd URL" when I need to bypass the proxy. Hence I was prett

[issue25080] The example-code for making XML-RPC requests through proxy, fail!

2016-02-22 Thread Berker Peksag
Berker Peksag added the comment: This has been fixed in cf842a8ccb77. Thank you for reporting this, Kostis! -- nosy: +berker.peksag resolution: -> out of date stage: needs patch -> resolved status: open -> closed versions: -Python 3.4 ___ Python

[issue7291] urllib2 cannot handle https with proxy requiring auth

2015-12-10 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

<    1   2   3   4   5   6   7   8   9   10   >