468,309 Members | 1,274 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,309 developers. It's quick & easy.

How to configure proxy authentication when using urllib2?

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!

Feb 19 '06 #1
2 7482
I want to know that, too!

Feb 19 '06 #2
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/a....shtml#proxies, one
of many cookbook recipes:
http://aspn.activestate.com/ASPN/Coo.../Recipe/456195.
Generally, there's much more to google on this topic.

--
Jarek Zgoda
http://jpa.berlios.de/
Feb 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Herman Geldenhuys | last post: by
reply views Thread by jacob c. | last post: by
4 posts views Thread by jdvolz | last post: by
1 post views Thread by Magnus.Moraberg | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.