Which registry / environment (or other) settings does urllib2.urlopen use to determine proxy settings?

StackOverflow https://stackoverflow.com/questions/4223801

Question

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

Was it helpful?

Solution

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

HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top