Nobody knows? But why?

Andrew Markebo flognat at
Tue Jan 29 16:36:13 EST 2002

| import httplib
| h = httplib.HTTP('') #proxy

The way I have used proxies through python is either by doing:

u = urllib.URLOpener({"http" : ''})

another way is setting the environment variable http_proxy to and firing up URLOpener. Without params
it sniffs the environment.

I haven't looked into urllib2. 


p.s. Oops, I noticed I wrote wrong in the original article, so I am
trying to supersede it ;-)

 The eye of the beholder rests on the beauty!

More information about the Python-list mailing list