Adam pisze: > Hi, everyone, I am using /usr/share/system-config-language/ > language_gui.py in Python. > For some reason I have to bypass the firewall using a proxy. I read > the urllib reference and set http_proxy="my proxy". But it didn't > work. Is there anyway that we can set the proxy?
I did sth. like this: proxy_url = "http://user:[EMAIL PROTECTED]:8080" proxy_support = urllib2.ProxyHandler({'http': proxy_url}) opener = urllib2.build_opener(proxy_support) urllib2.install_opener(opener) src = urllib2.urlopen(url) now you can easily read from src. -- Soltys "Free software is a matter of liberty not price" -- http://mail.python.org/mailman/listinfo/python-list