Autor Beitrag
Dayhawk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 10.03.04 21:01 
Hi
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
function GetURLByIndy(const AURL: String): String;
var
  IdHTTP: TIdHTTP;
begin
  IdHTTP:=TIdHTTP.Create(nil);
  try
    Result:=IdHTTP.Get(AURL);
  finally
    IdHTTP.Free;
  end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Lines.Text:=GetURLByIndy('http://200.200.200.200/testi/test.phtml');
end;

ich schaff es einige webseiten mit diesem code runterzuladen.
nur bekomm ich bei der seite die ich wirklich will einen fehler:
" Project Project1.exe raised exception class EConvertError with message "Invalid argument to date encode". Process stopped. Use Step or Run to continue."

hat jemand eine idee wie ich diesen fehler umgehe oder was der fehler überhaupt bedeutet ?

Mfg Dayhawk

PS: ich arbeite heute das erste mal mit Indy also seit nicht so hart zu mir *g*

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mi 10.03.04 21:06 
um welche datei/url handelt es sich denn?

ixtreme.de
Dayhawk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 10.03.04 21:08