Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61467

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'failing': 0.07; 'skip:" 60': 0.07; 'skip:u 30': 0.07; 'urllib2': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:a 10': 0.09; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; 'data)': 0.16; 'https': 0.16; 'luck!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:u 50': 0.16; 'subject: \n ': 0.16; 'subject:Problem': 0.16; 'subject:https': 0.16; 'subject:when': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'import': 0.22; 'header:User- Agent:1': 0.23; 'error': 0.23; 'fixed.': 0.24; 'ssl': 0.24; 'looks': 0.24; "i've": 0.25; 'skip:" 20': 0.27; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'url:bugs': 0.29; '2009': 0.29; 'raise': 0.29; 'code': 0.31; '"")': 0.31; 'reduced': 0.31; 'file': 0.32; 'open': 0.33; 'url:python': 0.33; '(most': 0.33; 'monday,': 0.33; 'proceed': 0.33; 'skip:_ 10': 0.34; 'subject:from': 0.34; 'subject:with': 0.35; 'skip:s 30': 0.35; 'skip:u 20': 0.35; 'version': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'step': 0.37; 'to:addr:python- list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'recent': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'read': 0.60; 'extended': 0.61; 'simple': 0.61; 'further': 0.61; 'email addr:gmail.com': 0.63; 'july': 0.63; 'confirm': 0.64; 'our': 0.64; 'url:user': 0.65; 'here': 0.66; '20,': 0.68; 'request.': 0.70; 'jul': 0.74; 'subject:get': 0.81; 'subject:over': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5
Date Tue, 10 Dec 2013 13:48:09 +0000
References <8fe2ad78-0bd4-40d8-909c-1d2784441e3c@s31g2000yqs.googlegroups.com> <58f2558c-33fe-4ee0-9a0a-2563374be47c@x6g2000prc.googlegroups.com> <446a3c42-6d86-4003-85be-3e5d8a23b268@c14g2000yqm.googlegroups.com> <a57d1f96-20f4-4c12-b106-0dae360f65bf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-25-229.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
In-Reply-To <a57d1f96-20f4-4c12-b106-0dae360f65bf@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3826.1386683310.18130.python-list@python.org> (permalink)
Lines 60
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386683310 news.xs4all.nl 2906 [2001:888:2000:d::a6]:50549
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61467

Show key headers only | View raw


On 10/12/2013 13:35, harish.barvekar@gmail.com wrote:
> On Monday, July 20, 2009 11:28:53 PM UTC+5:30, tvashtar wrote:
>> On Jul 20, 4:42 pm, Nike <nike...@gmail.com> wrote:
>>> hi!
>>>   It's looks like a ssl error . Under the following step to help u :
>>>    1. takes a simple code to confirm your pupose without ssl protocol.
>>>    2. to confirm python version and extended libs work well
>>>    3. to confirm ssl work well.
>>>
>>> goog luck!
>>>
>>> nikekoo
>>
>> I've reduced my code to the following:
>>
>> import urllib2
>>
>> p = "https://user:pass@myproxy:port"
>> proxy_handler = urllib2.ProxyHandler({"https": p})
>> urllib2.install_opener(urllib2.build_opener(proxy_handler))
>> request = urllib2.Request( "https://groups.google.com")
>> response = urllib2.urlopen(request)
>>
>> and it is now failing with:
>>
>> Traceback (most recent call last):
>>    File "D:\p4\depot\Development\HEAD\Build\ReleaseSystem\DownloadSystem
>> \test.py", line 12, in <module>
>>      response = urllib2.urlopen(request)
>>    File "C:\Python25\lib\urllib2.py", line 121, in urlopen
>>      return _opener.open(url, data)
>>    File "C:\Python25\lib\urllib2.py", line 379, in open
>>      response = self._open(req, data)
>>    File "C:\Python25\lib\urllib2.py", line 397, in _open
>>      '_open', req)
>>    File "C:\Python25\lib\urllib2.py", line 358, in _call_chain
>>      result = func(*args)
>>    File "C:\Python25\lib\urllib2.py", line 1115, in https_open
>>      return self.do_open(httplib.HTTPSConnection, req)
>>    File "C:\Python25\lib\urllib2.py", line 1082, in do_open
>>      raise URLError(err)
>> urllib2.URLError: <urlopen error Tunnel connection failed: 407 Proxy
>> Authentication Required>
>>
>> I thought the proxy_handler should take care of the authentication?
>>
>> Thanks for your help
>
> Is this issue fixed. I am also facing the same issue of tunneling in https request. Please suggest how to proceed further
>

Please read the whole history of this here 
http://bugs.python.org/issue1424152

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Problem when applying Patch from issue1424152 to get https over  authenticating proxies working with urllib2 in Python 2.5 harish.barvekar@gmail.com - 2013-12-10 05:35 -0800
  Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Chris Angelico <rosuav@gmail.com> - 2013-12-11 00:47 +1100
    Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 rurpy@yahoo.com - 2013-12-10 07:48 -0800
      Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 16:22 +0000
        Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 rusi <rustompmody@gmail.com> - 2013-12-10 08:49 -0800
          Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Chris Angelico <rosuav@gmail.com> - 2013-12-11 03:54 +1100
            Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Grant Edwards <invalid@invalid.invalid> - 2013-12-10 17:12 +0000
          Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 16:58 +0000
        Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 rurpy@yahoo.com - 2013-12-10 08:59 -0800
          Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 17:05 +0000
          Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 David Robinow <drobinow@gmail.com> - 2013-12-10 12:36 -0500
            Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 rurpy@yahoo.com - 2013-12-10 10:15 -0800
  Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 13:48 +0000
  Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 14:06 +0000
  Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Chris Angelico <rosuav@gmail.com> - 2013-12-11 01:14 +1100
  Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-10 14:54 +0000

csiph-web