Re: Python Behind a Squid Corporate Proxy on Windows

2008-08-21 Thread Danilo
Hi, do you manage to go through the proxy? I'm having the same problem with error 407. I've tried many solutions from the web but it always show the same error. So, if you solved your problem, please, post it here. Thanks Danilo On 18 jul, 15:43, Larry Hale [EMAIL PROTECTED] wrote: Thank you

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Chris
On Jul 17, 6:40 pm, Larry Hale [EMAIL PROTECTED] wrote: Err, the line above should be: proxy_handler = urllib2.ProxyHandler( { http: http:// myusername:[EMAIL PROTECTED]:3128 } ) (Sorry!  :) some old code I wrote to download public domain info for our company, also through a squid proxy and

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies Error 407: Proxy Authentication Required, which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris [EMAIL

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies Error 407: Proxy Authentication Required, which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris [EMAIL

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies Error 407: Proxy Authentication Required, which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris [EMAIL

Python Behind a Squid Corporate Proxy on Windows

2008-07-17 Thread Larry Hale
Greetings, Pythonistas! My employer has a Squid Proxy between my Python programs and The Internet. I've searched high-and-low, and can only find examples online of how to do basic authentication to connect TO an external Web Server, but not how to go THROUGH a (corporate) Proxy, thus my question

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-17 Thread Larry Hale
Err, the line above should be: proxy_handler = urllib2.ProxyHandler( { http: http:// myusername:[EMAIL PROTECTED]:3128 } ) (Sorry! :) -- http://mail.python.org/mailman/listinfo/python-list