Einzelnen Beitrag anzeigen

Delphi-Lover

Registriert seit: 19. Okt 2004
Ort: Amsterdam
30 Beiträge
 
Delphi 2005 Professional
 
#1

How to Use Indy 10 idHTTP : IOHandler value is not valid

  Alt 15. Jun 2005, 12:09
Hello,

Using the idHTTP component in Indy 9 was very easy, but now I want to use the Indy 10 library and I got a lot of problems, even just to get a page from the Web.

This is how it goes in Indy 9:

Delphi-Quellcode:
IdHttp:=TIdHttp.Create(NIL);
Try
  Page:=IdHttp.Get(URL);
  FStringList.Text:=Page;
  .....
  .....
Finally
  IdHttp.Free;
End;
If you do this with Indy 10 then the error message will be raised:

"EidIOHandlerPropInvalid : IOHandler value is not valid"

What is the proper declaration in Indy 10 to do this?
I don't want to use the components in design time
but I want to create it in Runtime.

Greets,

Delphi Lover.
Rob
  Mit Zitat antworten Zitat