Re: urllib2 through basic auth'ed proxy

2006-04-02 Thread Alejandro Dubrovsky
John J. Lee wrote: > [EMAIL PROTECTED] (John J. Lee) writes: > >> Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: > [...Alejandro complains about non-working HTTP proxy auth in urllib2...] > > [...John notes urllib2 bug...] >> A workaround is to supply a stupid HTTPPasswordMgr that always return

Re: urllib2 through basic auth'ed proxy

2006-04-01 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...Alejandro complains about non-working HTTP proxy auth in urllib2...] [...John notes urllib2 bug...] > A workaround is to supply a stupid HTTPPasswordMgr that always returns > the proxy credentials regard

Re: urllib2 through basic auth'ed proxy

2006-03-31 Thread John J. Lee
Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: > John J. Lee wrote: > > > FWIW, at a glance, Python 2.3.4 has neither of the bugs I mentioned, > > but the code I posted seems to work with 2.3.4. I'm not particularly > > interested in what's wrong with 2.3.4's version or your usage of it > > (pr

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread Alejandro Dubrovsky
John J. Lee wrote: > FWIW, at a glance, Python 2.3.4 has neither of the bugs I mentioned, > but the code I posted seems to work with 2.3.4. I'm not particularly > interested in what's wrong with 2.3.4's version or your usage of it > (probably both), since bugfix releases for 2.3 are no longer > h

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread John J. Lee
Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...] > The proxy is squid. Python version is 2.3.4 (I read that this version has a > problem in that it introduces an extra return after the authorisation, but > it isn't even getting to that bit). And yes, going through firefox, > everything works

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread John J. Lee
Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...] > How does one connect through a proxy which requires basic authorisation? > The following code, stolen from somewhere, fails with a 407: > [...code involving urllib2.ProxyBasicAuthHandler()...] > Can anyone explain me why this fails, or more i

urllib2 through basic auth'ed proxy

2006-03-29 Thread Alejandro Dubrovsky
I see from googling around that this is a popular topic, but I haven't seen anyone saying "ah, yes, that works", so here it goes. How does one connect through a proxy which requires basic authorisation? The following code, stolen from somewhere, fails with a 407: proxy_handler = urllib2.ProxyHand