Skip to content

Commit

Permalink
Update proxy method to support https
Browse files Browse the repository at this point in the history
  • Loading branch information
ggatward committed Oct 9, 2017
1 parent 281f4d6 commit 9a5779c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions download_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@

# Use HTTP proxy if required
if helpers.PXYADDR:
proxy = {"http":"http://%s" % helpers.PXYADDR}
proxy_support = urllib2.ProxyHandler(proxy)
opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler(debuglevel=1))
urllib2.install_opener(opener)
if options.debug:
print "Using proxy: " + helpers.PXYADDR
os.environ['http_proxy'] = helpers.PXYADDR
os.environ['https_proxy'] = helpers.PXYADDR

request = urllib2.Request(url)
base64string = base64.encodestring('%s:%s' % (login, password)).strip()
Expand Down

0 comments on commit 9a5779c

Please sign in to comment.