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()
-
Dimitrios Apostolou <[EMAIL PROTECTED]> writes:
> On Wed, 2 Jan 2008, Rob Wolfe wrote:
>
>> Dimitrios Apostolou <[EMAIL PROTECTED]> writes:
>>
>>> Hello list,
>>>
>>> I've been looking for a way to explicitly disable the use of proxies with
>>> urllib2, no matter what the environment dictates. Unf
On Wed, 2 Jan 2008, Rob Wolfe wrote:
> Dimitrios Apostolou <[EMAIL PROTECTED]> writes:
>
>> Hello list,
>>
>> 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 in the documentation, a
Dimitrios Apostolou <[EMAIL PROTECTED]> writes:
> Hello list,
>
> 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 in the documentation, and reading the source leads me to believe tha
Hello list,
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 in the documentation, and reading the source leads me to believe that
something like the following does the job:
req.set_pr