Autor Beitrag
Millo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Sa 14.09.02 21:38 
Moinsen

Ich hab da ein nettes Problem Ich will eine größere Datei aus dem Netz laden aber bekomme immer den Fehler das blablabla Moved bei kleinen gehts. Ich verwende die Indy Komponenten und diese schlichten Code:
ausblenden Quelltext
1:
2:
responseStream := TFileStream.Create(Data,fmCreate,fmShareDenyNone);
IdHTTP1.Get('http://www.blablabla.de/Datei.zip, responseStream);
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 14.09.02 22:30 
Bekommst du eventuell ein Timeout?
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 14.09.02 23:45 
Statt blablabla würde ich vielleicht die komplette Fehlermeldung posten. Ich denke damit könnte man mehr anfangen :lol:

Gruß
TINO


Zuletzt bearbeitet von Tino am So 15.09.02 00:41, insgesamt 1-mal bearbeitet
M4EiB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: So 15.09.02 00:14 
probier es mal so:
idhttp1.HandleRedirects := true;
und dann dein code!

die fehlermeldung moved ist ein hinweis auf eine weiterleitung! die neue url kannst du im header unter "Location" auslesen, falls es dich interessiert.
Millo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Mo 16.09.02 15:40 
Titel: Schon geregelt
Moin
danke für die Antworten hat sich allerdings schon erledigt