Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy http mehrere dateien downloaden (https://www.delphipraxis.net/55708-indy-http-mehrere-dateien-downloaden.html)

netfalcon13 25. Okt 2005 19:31


Indy http mehrere dateien downloaden
 
HuHu!
ich würd gerne verschiedene xml-dokumente mit einem http get befehl laden.

damit habe ich auch kein problem beim erstenmal,
das zweite mal stürzt das dingen jedoch gnadenlos zwischen den beiden dokumenten ab.


Delphi-Quellcode:


                modified.XML.Text := http.Get('xml/modified.xml?timestamp=0&password=' + passwortmd5);
                modified.Active := true;
                modified.SaveToFile(fAppPath + 'xml/' +'modified.xml');
                modified.Active := False;

-- hier der absturz
(socketfehler 10061 - keine verbindung möglich)
                setting.XML.Text := http.Get('xml/setting.xml?timestamp=0&password=' + passwortmd5);
                setting.Active := true;
                setting.SaveToFile(fAppPath + 'xml/' +'modified2.xml');
                setting.Active := False;

die erste läd er noch ohne probleme aber dann:
probiert dazwischen zusatzen hab ich :
http.DisconnectSocket;
http.Disconnect;
http.Connect;

nicht funktioniert... :pale:

weiß jemand weiter ?


ich habe es ausserdem mit threads versucht ging auch nicht :cry: :cry: :cry: :cry:

netfalcon13 25. Okt 2005 19:36

Re: Indy http socketfehler 10061 obwohl erfolgreich (xml-fil
 
achso mit einer zweiten http komponente funktioniert es, aber es kann doch nicht sein dass ich dann für 5 xml files gleich 5 http komponente brauche!


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz