Autor Beitrag
stefan_
Hält's aus hier
Beiträge: 2



BeitragVerfasst: So 29.08.04 15:34 
Hallo zusammen,

ich möchte eine Datei aus dem Internet runterladen.
Mit urldownloadtofile funktioniert das auch ganz gut, einziges Problem ist dabei, wenn die die Datei in einem passwortgeschützten Verzeichnis liegt. Dann funktioniert der Download nämlich nicht.
Wenn ich im Hintergrund ein IE-Fenster mit der Datei offen habe, dann funktioniert es.

Hat jemand von euch eine Lösung parat???

Danke.

Stefan
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 30.08.04 07:02 
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 30.08.04 08:36 
icht unbedingt, da diese URL-Form laut neuestem Standard geblockt wird.

Datei normal Anfragen, aber als zusätzliche HEader-Zeile mit MIME64-Encodierung den Text user:pw senden:

Authenticiation: AAAAA=

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
stefan_ Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Mo 30.08.04 09:39 
Hallo nochmal,

also die Lösung von UGrohne funktioniert wunderbar. Danke.

@BenBE: hast du ein Beispiel parat?

Gruß
Stefan
Viper
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 88



BeitragVerfasst: Mo 30.08.04 10:44 
BenBE hat folgendes geschrieben:
nicht unbedingt, da dieses URL-Form laut neuestem Standard geblockt wird.


Kann ich das irgendwie abstellen? Ich möchte eigentlich nicht, dass das geblockt wird.

_________________
"Der Sinussatz ist nur was für Leute, die Teichbesitzer mit Insel und Baum sind. Alle anderen können ihn vergessen" (Mein Mathe-Prof.)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 30.08.04 20:37 
Nein, da der Remote-Server diese URL-Form nicht akzeptiert. Daher downloaden wie beschrieben mit:

ausblenden Quelltext
1:
2:
GET /save/file.txt HTTP/1.1
Authenticiation: DFAafjklasgabsdbABab...

Nach dem authenticiation wie beschrieben die Anmeldedaten senden... In den meisten HTTP-Clients sollte dies automatisch erledigt werden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.