1

Following on from this question: What is causing urllib2.urlopen() to connect via proxy?

I'd like to know which operating system & environmental settings can affect urllib2.urlopen?

For example, I've noticed that on some machines within our very large corporation urllib2.urlopen insists on connecting via a proxy. This is a problem because the resources our application needs to connect to are on the local network, and so adding the proxy to the mix causes authentication problems.

I'm using Windows 32bit XP / Python 2.4.4

Community
  • 1
  • 1
Salim Fadhley
  • 22,020
  • 23
  • 75
  • 102

1 Answers1

2

You can see the exact code, but as the docs say the registry section is Internet Settings:

HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
  • Next question - is there a way to make urllib2 ignore this setting? I want it to always connect directly (no matter what). – Salim Fadhley Nov 19 '10 at 10:23
  • @Salim, is there an issue with the [code](http://stackoverflow.com/questions/4218809/what-is-causing-urllib2-urlopen-to-connect-via-proxy/4218924#4218924) given at the other question? – Matthew Flaschen Nov 19 '10 at 10:31
  • Yes, I was hoping to use Distribute to install some eggs within a coprporate ntwork. Ideally I'd not like to change the source code for Distribute (we'd prefer to keep it standard) - I'm looking for a way to force distrubute not to use a proxy with the minimum of hacking. – Salim Fadhley Nov 19 '10 at 11:34