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
[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
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
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
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
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
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