[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: urllib2 disable proxy

Richie Hindle

1/4/2008 9:35:00 AM

Hi Dimitris,

> I've been looking for a way to explicitly disable the use of proxies with
> urllib2, no matter what the environment dictates. Unfortunately I can't find
> a way [...]

Would changing the environment work? Like this:

>>> del os.environ['http_proxy']
>>> do_stuff_with_urllib2()

--
Richie Hindle
richie@entrian.com