How to configure proxy authentication when using urllib2?

2006-02-19 Thread Licheng Fang
I use a HTTP proxy to connect to Internet. When I run ulropen command I
get HTTP Error 407: Proxy authorization required. Could anybody tell me
how to resolve this? Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to configure proxy authentication when using urllib2?

2006-02-19 Thread hanxianpei
I want to know that, too!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to configure proxy authentication when using urllib2?

2006-02-19 Thread Jarek Zgoda
Licheng Fang napisaƂ(a):

 I use a HTTP proxy to connect to Internet. When I run ulropen command I
 get HTTP Error 407: Proxy authorization required. Could anybody tell me
 how to resolve this? Thanks!

You can build and install opener instance, then all urllib2 calls will
use it.

Some information:
http://www.voidspace.org.uk/python/articles/urllib2.shtml#proxies, one
of many cookbook recipes:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/456195.
Generally, there's much more to google on this topic.

-- 
Jarek Zgoda
http://jpa.berlios.de/
-- 
http://mail.python.org/mailman/listinfo/python-list