This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chrisl
Recipients cameron, chrisl, djc, doko, dpeterson, kxroberto, matb, mihalis68, mjpieters, mwilck, nfl, orsenthil, poeml, vila
Date 2008-06-27.23:09:28
SpamBayes Score 0.030009545
Marked as misclassified No
Message-id <70318cbf0806271609h2018076ci299307b929772836@mail.gmail.com>
In-reply-to <1214605368.56.0.268847437951.issue1424152@psf.upfronthosting.co.za>
Content
Hi NL,

Can you please try this patch on top of the original patch?

Thanks

Chris

--- .pc/fix-up/urllib2.py       2008-02-06 01:13:10.000000000 -0800
+++ urllib2.py  2008-06-27 15:45:34.000000000 -0700
@@ -253,7 +253,7 @@ class Request:
         return self.__r_host

     def set_proxy(self, host, type):
-        if self.type == 'https' and not self._tunnel_host:
+        if self.get_type() == 'https' and not self._tunnel_host:
             self._tunnel_host = self.host
         else:
             self.type = type

On Fri, Jun 27, 2008 at 3:22 PM, nfl <report@bugs.python.org> wrote:
>
> nfl <nflpython@irto.hu> added the comment:
>
> Hi,
>
> looks like the attached patch only works if I use
> urllib2.ProxyHandler({'https' : proxy}) at the start, but not when I use
> request.set_proxy(proxy, 'https') per request. I tested with Python
> 2.5.1 on Win32.
>
> ----------
> nosy: +nfl
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue1424152>
> _______________________________________
>
History
Date User Action Args
2008-06-27 23:09:30chrislsetspambayes_score: 0.0300095 -> 0.030009545
recipients: + chrisl, doko, mjpieters, orsenthil, kxroberto, vila, djc, mwilck, mihalis68, dpeterson, poeml, cameron, matb, nfl
2008-06-27 23:09:29chrisllinkissue1424152 messages
2008-06-27 23:09:28chrislcreate