[Bug 1098233] Re: flashplugin-installer do not honore proxy settings
Jan Groenewald
jan at aims.ac.za
Wed Aug 14 13:52:05 UTC 2013
Actually, this piece of code seems to work fine
# Get our proxy settings from the environment
proxies = {}
try:
for proto in ('http','https','ftp'):
try:
proxies[proto] = os.environ[proto+"_proxy"]
except KeyError:
pass
print proxies # my code
if proxies:
urllib._urlopener = urllib.FancyURLopener(proxies)
except Exception:
and then the urllib.urlretrieve should work, and it does when run
manually, but somehow not from the cron job. I can't see why.
--
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to flashplugin-nonfree in Ubuntu.
https://bugs.launchpad.net/bugs/1098233
Title:
flashplugin-installer do not honore proxy settings
To manage notifications about this bug go to:
https://bugs.launchpad.net/adobe-flash-plugin-tools/+bug/1098233/+subscriptions
More information about the Ubuntu-mozillateam-bugs
mailing list