so far i have done this:
import urllib2, base64, os
def dl():
dwnld="http://xxx.xxx.xxx.xxx:xx/user/file.zip"
username="user"
password="pass"
req=urllib2.Request(dwnld)
base64str=base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
req.add_header("Authorization", "Basic %s" % base64str)
result=urllib2.urlopen(req)
with open(os.path.basename(dwnld), "wb") as local_file:
local_file.write(result.read())
local_file.close()
dl()
now i need a download progress window (gui) and resume capability added to it. help please.