i have configured proxy but fiddler can't capture python's network requests

2011-07-04 Thread 成都七中2002级7班_大家都是天才~
here's my code. I've change the port from to . import urllib2 proxy_support = urllib2.ProxyHandler({'http':'http://127.0.0.1:'}) opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler) urllib2.install_opener(opener) content = urllib2.urlopen('http://www.google.com').read()

Re: i have configured proxy but fiddler can't capture python's network requests

2011-07-04 Thread Chris Angelico
2011/7/5 成都七中2002级7班_大家都是天才~ liu.liuwei@gmail.com: 2. If I open fiddler, everything works great. But I can't see the traffic in fiddler. And if I change port from to any other number, it works find too. It sounds to me like the traffic's going through fiddler, but you're just not

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-03 Thread Or
New submission from Or yellowsli...@gmail.com: I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: data = '' proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-03 Thread Or
Or yellowsli...@gmail.com added the comment: I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener = urllib2.build_opener

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-03 Thread Thomas Holmes
Thomas Holmes tho...@devminded.com added the comment: I setup a proxy and it seems to be working properly. This is on win7 x64 professional using Python 2.7.1 I didn't using any sniffing software but if I broke the proxy the code broke. When I enabled the proxy it started working again. My

[issue11700] mailbox.py proxy updates

2011-06-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b89d193cbca5 by R David Murray in branch '2.7': #11700: proxy object close methods can now be called multiple times http://hg.python.org/cpython/rev/b89d193cbca5 New changeset 8319db2dd342 by R David Murray in branch '3.2': #11700

[issue11700] mailbox.py proxy close method cannot be called multiple times

2011-06-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed title: mailbox.py proxy updates - mailbox.py proxy close method cannot be called multiple times type: - behavior

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___ ___

[issue11700] mailbox.py proxy updates

2011-05-24 Thread Steffen Daode Nurpmeso
() +except: +self.fail('.close() doesn\'t handle multiple invocations') def test_iterkeys(self): # Get keys using iterkeys() @@ -1774,6 +1779,68 @@ proxy.seek(2) self.assertEqual(proxy.read(1000), b'r') +def _test_read1(self, proxy): +# Read

[issue11700] mailbox.py proxy updates

2011-05-24 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file22095/11700.yeah-review.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11700 ___

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks like a bug in the third-party socks module rather than in urllib. You should report it there. -- nosy: +pitrou resolution: - invalid status: open - pending ___ Python tracker

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-05-07 Thread torstenb
Changes by torstenb torst...@vmunix.org: -- nosy: +torstenb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___ ___ Python-bugs-list mailing

[issue11700] mailbox.py proxy updates

2011-04-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 16, 2011 at 08:17:30PM +, R. David Murray wrote: [...] rather odd considering that there is also a 'closed' method that would fail similarly if close was ever called. Maybe someone got not enough feedback after

[issue11700] mailbox.py proxy updates

2011-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah. Well, since the io module and its classes didn't exist when that code in mailbox.py was written, no, that's not what happened :) Nor does 'file like object' in Python necessarily mean conformance to the io specification. We are

[issue11700] mailbox.py proxy updates

2011-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Updated patch addressing Stefen and Ezio's comments. -- Added file: http://bugs.python.org/file21699/mailbox_close_twice.patch ___ Python tracker rep...@bugs.python.org

[issue11700] mailbox.py proxy updates

2011-04-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's a patch that fixes the reported bug (calling close twice fails with an AttributeError) the simple way. Note that there was actually a test for the buggy behavior, which is rather odd considering that there is also a 'closed'

[issue11700] mailbox.py proxy updates

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Amaury Forgeot d'Arc wrote: mbf.close() should not fail when called twice. The close() method in the io module states that This method has no effect if the file is already closed. But then, is close=False necessary? I see

[issue11700] mailbox.py proxy updates

2011-04-10 Thread Steffen Daode Nurpmeso
') def test_iterkeys(self): # Get keys using iterkeys() @@ -1774,6 +1779,68 @@ proxy.seek(2) self.assertEqual(proxy.read(1000), b'r') +def _test_read1(self, proxy): +# Read by byte +proxy.seek(0) +self.assertEqual(proxy.read1(3), b'bar

[issue11700] mailbox.py proxy updates

2011-04-09 Thread Steffen Daode Nurpmeso
_test_read1(self, proxy): +# Read by byte +proxy.seek(0) +self.assertEqual(proxy.read1(3), b'bar') +proxy.seek(1) +self.assertEqual(proxy.read1(2), b'ar') +proxy.seek(0) +self.assertEqual(proxy.read1(2), b'ba') +proxy.seek(1

[issue11700] mailbox.py proxy updates

2011-04-08 Thread Steffen Daode Nurpmeso
() doesn\'t handle multiple invocations') def test_iterkeys(self): # Get keys using iterkeys() @@ -1774,6 +1779,55 @@ proxy.seek(2) self.assertEqual(proxy.read(1000), b'r') +def _test_readinto(self, proxy): +# Fill in bytearray +proxy.seek(0

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
() @@ -1833,10 +1835,35 @@ self.assertFalse(proxy.read()) def _test_close(self, proxy): -# Close a file +self.assertFalse(proxy.closed) +self.assertTrue(proxy.seekable()) +self.assertRaises(io.UnsupportedOperation, proxy.flush) +self.assertRaises

[issue11700] mailbox.py proxy updates

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't understand what you are saying about raising a ValueError on close. f = open('x'); f.close(); f.close() does not raise any error, as Amaury pointed out. So I still don't understand the motivation for a more complex fix.

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Thu, Apr 07, 2011 at 04:41:52PM +, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: I don't understand what you are saying about raising a ValueError on close. f = open('x'); f.close();

[issue11700] mailbox.py proxy updates

2011-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given your problem report wouldn't the simplest solution be to change the close method to be: if hasattr(self, '_file'): if hasattr(self._file, 'close'): self._file.close() del self._file As for a test, it

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Mon, Mar 28, 2011 at 09:52:43PM +, Amaury Forgeot d'Arc wrote: But then, is close=False necessary? It's about 'class _PartialFile(_ProxyFile)', for which this argument is always false. Alternatively there could be a

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This new patch adheres your suggestion. Now all implemented operations perform a file is open at all check and raise ValueError if not, which somewhat reflects what i've seen when i was looking into fileio.c. My questions: -

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: I'll send a patch that updates/fixes handling of file closes in the internal proxy-file classes. It could cause errors yet because self._file is del-eted but that field may still be used afterwards. mb = mailbox.Maildir

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Here's the patch. -- keywords: +patch Added file: http://bugs.python.org/file21438/11700.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11700

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: mbf.close() should not fail when called twice. The close() method in the io module states that This method has no effect if the file is already closed. But then, is close=False necessary? -- nosy: +amaury.forgeotdarc stage: -

Re: Proxy authentication required

2011-03-22 Thread gervaz
On 22 Mar, 00:02, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error

Re: Proxy authentication required

2011-03-22 Thread gervaz
On 22 Mar, 09:34, gervaz ger...@gmail.com wrote: On 22 Mar, 00:02, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any

Re: Proxy authentication required

2011-03-22 Thread Chris Rebert
behind a proxy. So far this is what I've used without any successful result receiving the error: urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires auth orization to fulfill the request. Access to the Web Proxy filter is denied.  ): hc

Proxy authentication required

2011-03-21 Thread gervaz
Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error: urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires auth orization to fulfill the request. Access

Re: Proxy authentication required

2011-03-21 Thread Chris Rebert
On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error: urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA

Re: Proxy authentication required

2011-03-21 Thread python
On Mar 21, 7:02 pm, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Scott Wilson
New submission from Scott Wilson scott.wil...@gmail.com: Fixes a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list. Tests that fail on os x without this patch: test_urllib2.HandlerTests.test_proxy_https test_urllib2

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Scott Wilson
Changes by Scott Wilson scott.wil...@gmail.com: -- nosy: +orsenthil -ronaldoussoren type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11500 ___

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Scott Wilson
Scott Wilson scott.wil...@gmail.com added the comment: This patch adds test coverage to the osx proxy bypass code and includes the previous one line patch. Also adds a test for the proxy_no=* case. -- Added file: http://bugs.python.org/file21134/proxy_bypass_osx_w_tests.diff

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Patch looks great, I'll commit shortly. Thanks for the patch. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11500

[issue11511] Proposal for exposing proxy bypass settings in ProxyHandler

2011-03-14 Thread Scott Wilson
New submission from Scott Wilson scott.wil...@gmail.com: Several proxy tests in test_urllib2_localnet were failing for me on osx due to spurious interference of my configured proxy settings. Attaching a patch that proposes exposing the proxy bypass settings in the same manner as the proxies

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 682903e066db by Ronald Oussoren in branch '3.1': Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list http://hg.python.org/cpython/rev/682903e066db New changeset

[issue11500] Fixes failing urllib2 proxy tests on OSX

2011-03-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The patch got merged. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11500

[issue11511] Proposal for exposing proxy bypass settings in ProxyHandler

2011-03-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11511 ___

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-03-02 Thread OJW
communications go through SOCKS4A proxy Actual result: DNS lookup of example.com goes through default gateway, followed by HTTP connection via the proxy -- components: Library (Lib) messages: 129899 nosy: OJW priority: normal severity: normal status: open title: urllib2 over SOCKS doesn't use

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-03-02 Thread Jérôme Radix
Changes by Jérôme Radix jerome.ra...@gmail.com: -- nosy: +jerome.radix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___ ___

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-03-02 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___

Proxy to open blocked sites

2011-02-26 Thread Ahmed Ragab
Proxy to open blocked sites http://ppropx.4mtm.net OR http://pronet.4mtm.net -- http://mail.python.org/mailman/listinfo/python-list

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: The attached patch builds on Mike's work. The core of the problem is that the Request object did not know what was going on. This means that it was not possible for get_authorization() to work for proxy-auth and www-auth. I change Request

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: Attached is the code I used to test these changes. See the README.txt file for details include the results of a test run. -- Added file: http://bugs.python.org/file20822/urllib2_tests.tar.gz ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: I left out some white space changes to match the style of the std lib code. Re posting with white space cleanup. -- Added file: http://bugs.python.org/file20824/http_proxy_https.patch ___ Python

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Changes by Barry Scott barry.sc...@onelan.co.uk: Removed file: http://bugs.python.org/file20821/http_proxy_https.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7291 ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-19 Thread Mike Beachy
Mike Beachy mbea...@gmail.com added the comment: I've been in contact w/ Barry Scott offline re: the monkey patch previously mentioned. I'm attaching a 2.7 maintenance branch patch that he has needed to extend, and plans to follow up on. -- Added file:

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-19 Thread Mike Beachy
Mike Beachy mbea...@gmail.com added the comment: Attached to this comment (can you attach multiple files at once?) is the somewhat moldy 2.6.4 monkey patch, mercilessly ripped from my own code and probably not good for much. -- Added file:

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-18 Thread Alexander Gattin
Hello, On Fri, Feb 18, 2011 at 09:40:19AM +0500, Andrea Gavana wrote: Fails with a variety of errors depending on which port I use: - Port 80: urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-17 Thread Andrea Gavana
Hi Malcolm, On 17 February 2011 11:44, Malcolm Greene wrote: Andrea, What type of result do you get trying port 993 ? Thank you for your answer. I have tried that, with imaplib and libgmail. This is what I get with imaplib: Traceback (most recent call last): File

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-17 Thread python
Hi Andrea, Have you tried temporarily turning off your Windows firewall software and/or any locally installed internet security software like Norton, Avast, etc? You don't need to turn off your entire security package, just the component that controls internet access. If the problem can not be

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-17 Thread Andrea Gavana
understand, they seem to use the company proxy settings to access the web (and this is also what the about:config in Firefox is telling me: it gives all the proxy servers and ports I need). However, even the simplest piece of code using urllib2 and trying to read the Python web page like

IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread Andrea Gavana
, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol OK. Then I googled back and forth for a possible solution, and I got a hint that (maybe) the problem could be related to proxy authentication. And I tried this solution (which uses

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread BJ Swope
in violation of protocol OK. Then I googled back and forth for a possible solution, and I got a hint that (maybe) the problem could be related to proxy authentication. And I tried this solution (which uses SocksiPy) I found on the web (username2 and password2 are the user name and password

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread Andrea Gavana
] _ssl.c:480: EOF occurred in violation of protocol OK. Then I googled back and forth for a possible solution, and I got a hint that (maybe) the problem could be related to proxy authentication. And I tried this solution (which uses SocksiPy) I found on the web (username2 and password2

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread Malcolm Greene
Andrea, What type of result do you get trying port 993 ? Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread Chris Rebert
On Wed, Feb 16, 2011 at 10:44 PM, Malcolm Greene mgre...@bdurham.com wrote: Andrea, What type of result do you get trying port 993 ? i.e. The port Google explicitly says to use for IMAP in Gmail's help docs. Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list

Sending email via proxy

2011-02-13 Thread Jason Sergeant
Hello, Is chilkat the best option for doing this?(Sending email via proxy) Kind Regards, Jason Sergeant This email has been processed by SmoothZap - www.smoothwall.net -- http://mail.python.org/mailman/listinfo/python-list

Uploading files to an an FTP site through a proxy server which requires authentication

2011-02-09 Thread tkp...@hotmail.com
I would like to upload files to a ftp site, but can't seem to get through our proxy server, which requires authentication. How can one do this in Python (I use 2.7, but am more than happy to use 3.2 rc2) Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list

[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-07 Thread Ned Deily
: open - closed superseder: - Proxy exception lookup fails on MacOS in urllib. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10643 ___ ___ Python-bugs-list

[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - committed/rejected type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10643 ___

[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-06 Thread wojas
New submission from wojas pyt...@m.wojas.nl: On OSX (tested with 10.6), urllib will fail to parse the proxy exceptions configuration if no netmask is specified. On my system the following entries have been added to the proxy exception list: '127.0.0.1' and 'localhost'. The traceback

[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-06 Thread wojas
wojas pyt...@m.wojas.nl added the comment: Forgot to set bug type (crash). -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10643 ___

suds: how to set proxy?

2010-11-08 Thread Johann Spies
According to the suds documentation I can set the proxy setting like this: d = dict(http='host:80', https='host:443', ...) client.set_options(proxy=d) My problem is that you can only do that after 'client' was initiated like this: client = Client(url) And I need the proxy to reach the url. I

http2https proxy

2010-09-19 Thread Seb
I'd like to open a ssl connection to a https server, done Create a socket and bind it to a local port, done Connect the two in such a way that everything read or written to the local port is actually read or written to the https server. In other words I want a http2https proxy. ideas? best

[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 3.x, http_error_auth_reqed is a method of urllib.request.AbstractBasicAuthHandler (20.5.8. AbstractBasicAuthHandler Objects in 3.1 lib manual) -- nosy: +terry.reedy stage: - unit test needed ___

[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2010-08-19 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- title: urllib2 - Basic,Digest Auth Handlers Retry will give 401 code instead of 407 - urllib2 - Basic,Digest Proxy Auth Handlers failure will give 401 code instead of 407 ___ Python tracker rep

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The fix in r80243 for 27 and similar fixes for 26, 31, and py3k do prevent crashes on OS X 10.3 when using network proxies so this issue can be closed. However, the problem I mentioned above with changing the default sense which caused tests to fail

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned: could you please check if the issue is present in Python 2.7? I don't have access to machines that are capable of running OSX 10.3. -- ___ Python tracker rep...@bugs.python.org

[issue6853] system proxy not used for https (on windows)

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r82890 and branches. Thanks Mark for bringing these issues out. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue6853] system proxy not used for https (on windows)

2010-07-11 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This is a one line patch. -- assignee: - orsenthil nosy: +BreamoreBoy, orsenthil stage: - patch review versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue4140] urllib2: request with digest auth through proxy fail

2010-07-10 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: This might be related to issue2202 as well. -- assignee: gregory.p.smith - orsenthil dependencies: +urllib2 fails against IIS 6.0 (No support for MD5-sess auth) nosy: +orsenthil resolution: - accepted

[issue4140] urllib2: request with digest auth through proxy fail

2010-07-09 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: As it's not actually known whether urllib2 or IIS is at fault, I suggest this is closed, it can always be reopened. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2010-07-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1424152 ___ ___

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-27 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Committed the patch with some minor modifications in r82284 (2.7), r82285 (2.6), r82286 (3.2), r82287 (3.1) -- resolution: - fixed stage: - committed/rejected status: open - closed type: crash - behavior

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
New submission from Yuriy Taraday yorik@gmail.com: I have straight IP in my proxy exception list like 192.168.0.2 without mask specification. The proxy_bypass_macosx_sysconf function verifies each item in this list by regexp r(\d+(?:\.\d+)*)(/\d+)? that produces two groups: IP and mask

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Patchs looks file, although the 'None' branch might be a bit too fancy. I haven't found a spec either, and therefore your code is probably the safest way to deduce a mask. -- assignee: - ronaldoussoren nosy: +ronaldoussoren

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: The strange thing is that in both 2.7 and 3.1 branches there is no such code at all. Inernet Config is used there without mentioning any exceptions despite the fact that ic module is marked as deprecated and proxy bypass is real

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: 2.7 and 3.x use the SystemConfiguration framework (through the _scproxy extension) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8883

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: I'm completely lost 2.7 tree in svn. My last post was about 3.1.2 release. As I understand, System Configuration framework is being used since 2.6.5 and 3.2. So, this bug is about all this versions. -- versions: +Python 2.7, Python

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've committed my proposed fix in r80243 (trunk) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8095 ___

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-04-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned: I've attached a new patch, could you please test this one on an 10.3 box? It turns out that testing if a weaklinked variable is defined should be done by testing the address of the variable, not its value. I've tested this new

[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2010-04-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've committed a port of _scproxies and the related code in urllib in r80198 (3.2), r80199 (3.1) BTW. With some luck this should already include a fix for the crash your seeing on OSX 10.3 with the trunk and 2.6. --

[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2010-04-18 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- stage: - committed/rejected type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7154 ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2010-04-13 Thread Mike Beachy
Mike Beachy mbea...@gmail.com added the comment: I have worked up a monkey patch for urllib2/httplib for the issue of setting the authentication using a Proxy(Basic|Digest)AuthHandler. The basic approach was to create a new httplib exception (ProxyTunnelError) and raise that with the http

[issue8238] Proxy handling

2010-03-26 Thread Ciprian Trofin
New submission from Ciprian Trofin ciprian.tro...@ktd.ro: After I installed Python 2.6.5, I noticed a drop in performance of web connections via proxy. This script: - import time import urllib2 timeMark = time.time() opener = urllib2

[issue8238] Proxy handling

2010-03-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: How are setting up and using your proxy? It would also help you discuss your approach at python-h...@python.org and if you see any specific issues, raise it in the bug report. -- nosy: +orsenthil

[issue8238] Proxy handling

2010-03-26 Thread Ciprian Trofin
Ciprian Trofin ciprian.tro...@ktd.ro added the comment: I attached a screenshot. The proxy is on the corporate network. I'm not setting it up, I'm only using it. Internet Explorer needs that setting in order to connect. Firefox needs this proxy set as manual proxy configuration. I looked

[issue7291] urllib2 cannot handle https with proxy requiring auth

2010-03-11 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: In this ticket, setting the authentication using a ProxyBasicAuthHandler is not yet addressed yet. (this was informed in the last note). Reopening this one to track it. -- resolution: fixed - accepted status: closed - open

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
New submission from Ned Deily n...@acm.org: The current mechanism for urllib and urllib2 on OS X to retrieve network proxy information is to call _scproxy.c to query the OS X SystemConfiguration Framework. _scproxy.c uses a schema key, kSCPropNetProxiesExcludeSimpleHostnames

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file16508/Python.crash.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8095 ___

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ronald Oussoren
changes the default on 10.4/10.5, IMHO defaulting to true would be better: I haven't seen an enviroment yet where local systems should be accessed through a proxy). BTW. Removing 3.1 and 3.2 because _scproxy isn't in those releases yet (mostly because porting requires signifant changes to the C code

[issue8083] urllib proxy interface is too limited

2010-03-09 Thread Dominique Leuenberger
Dominique Leuenberger dominique.leuenber...@gmail.com added the comment: I like the idea of having the proxy handler expanded. In fact I suggest to base the idea on libproxy ( http://code.google.com/p/libproxy ) which is available on Linux / openSolaris / Windows and Mac (currently). Libproxy

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: OK, I tried the patch. Reversing the default sense causes the proxy tests in test_urllib2 to fail on 10.6 et al. So I changed the sense of the tests in the patch to match previous behavior; the modified patch is attached. Unfortunately, it didn't

[issue8083] urllib proxy interface is too limited

2010-03-07 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The proxy support code in urllib is imho too specific and cannot easily support dynamic proxy configuration using a proxy.pac file. That is, the code assumes that there is at most one proxy per protocol, while this is not quite true

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