Autor Beitrag
Aton
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 125

Windows XP
D7 Enterprise
BeitragVerfasst: Mi 10.11.04 09:58 
Hallo ihr,

die Funktion URLDownloadToFile funktioniert ganz toll. Weiß jemand, wie man damit eine passwortgeschützte Datei herunterladen kann?

Wenn man den Link in den Internet Explorer eingibt, ploppt ein Fenster auf, um Benutzername und Passwort einzugeben.

Ich möchte die Datei ohne Anmeldefenster aus meinem Programm herunterladen. :? (Passwort und Benutzername sind natürlich bekannt.) :tongue:

Danke,
Gruß Jens.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 10.11.04 10:05 
Probiers mal damit als URL:

name:passwort@url-zu...chuetzt/datei.endung

raziel

_________________
JSXGraph
Aton Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 125

Windows XP
D7 Enterprise
BeitragVerfasst: Mi 10.11.04 11:12 
Hallo,

danke für den Tipp. Funktioniert aber leider nicht.

Gruß Jens.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 10.11.04 11:18 
Kommt eine Fehlermeldung? Wenn ja was für eine? HTTP-ErrorCode?
Ich hab das iirc aber schon mal vor längerer Zeit probiert und da hats funktioniert... :?

_________________
JSXGraph
Aton Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 125

Windows XP
D7 Enterprise
BeitragVerfasst: Mi 10.11.04 15:08 
Hallo raziel,

dein Lösung funktioniert doch. :D

Das Problem war, dass uns die falsche Adresse übermittelt wurde und ich vom Server immer nur eine html-Datei zurückbekam, die den richten Link aufrief.

Deshalb habe ich es beim Prüfen mit dem Internet Explorer nicht gemerkt.

Nochmal vielen Dank für die Lösung,
Gruß Jens.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 10.11.04 15:12 
Aton hat folgendes geschrieben:
Nochmal vielen Dank für die Lösung

Gern geschehen :)

Wenn Du noch ganz kurz auf den kleinen grünen Pfeil (user defined image) rechts oberhalb Deines ersten Posts klicken könntest, dann sieht jeder auf den ersten Blick, dass Deine Frage geklärt ist. Danke!

raziel

_________________
JSXGraph