Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Created January 25, 2012 18:05
Show Gist options
  • Save rockpapergoat/1677638 to your computer and use it in GitHub Desktop.
Save rockpapergoat/1677638 to your computer and use it in GitHub Desktop.
# in cacheController.py, around line 300
# add this to enable proxy support
# cf. http://stackoverflow.com/questions/1450132/proxy-with-urllib2
proxy_support = urllib2.ProxyHandler({"http" : "http://proxy.company.com:8080"})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment