Ich arbeite gerade an einem Downloadmanager, und habe gerade beim Download mein Problem:
Code: Alles auswählen
id = form.getvalue("id","")
infos = get_infos(id)
download = form.getvalue("download","")
print('Content-Type: text/html\n')
infos = get_infos(id)[0]
download = str(download)
if download == "2":
url = infos[9]
elif download == "1":
url = infos[8]
print('''<html>
<head>
<title></title>
<meta http-equiv="refresh" content="5; URL="''' + str(url) + '''">
<style></style>
</head>
<body><h2>Bitte warten Sie, bis der Download gestartet wird...</h2><br><br>Anschliessend kann dieses Fenster geschlossen werden!</body>
</html>''')
Ich habe bereits gegoogelt, weiß aber auch nicht so gut, welche Suchbegriffe ich anwenden soll.
Vielen Dank schoneinmal im vorraus!
akhof


