Changeset 6834


Ignore:
Timestamp:
Apr 17, 2009, 3:52:58 PM (15 years ago)
Author:
rwilson
Message:

Added commented code about working with proxy without passwords.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/system_tools.py

    r6822 r6834  
    333333    # We get here if there was a proxy error, get file through the proxy
    334334
     335## This code is how we might handle a proxy which doesn't use authentication
     336## CAN'T TEST THIS, SO NOT IMPLEMENTED
     337##    proxy = {'http': 'http://%s' % httpproxy}
     338##    try:
     339##        webget = urllib.urlopen(file_url, proxies=proxy)
     340##    else:
     341##        fd = open(file_name, 'wb')
     342##        while True:
     343##            data = webget.read(blocksize)
     344##            if len(data) == 0:
     345##                break
     346##            fd.write(data)
     347##        fd.close
     348##        webget.close()
     349
    335350    # unpack auth info
    336351    try:
Note: See TracChangeset for help on using the changeset viewer.