Nobody knows? But why?

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


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

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

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

another way is setting the environment variable http_proxy to
http://209.242.141.249:8080/ and firing up URLOpener. Without params
it sniffs the environment.

I haven't looked into urllib2. 

        /Andy

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