Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: Delphi 2007 - Indy 10 - TidHttp - IOHandler value is not valid error
| Subject: | Re: Delphi 2007 - Indy 10 - TidHttp - IOHandler value is not valid error |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 4 Dec 2007 09:54:38 |
"Kevin Frevert" <kevin@workdrinkingicewater> wrote in message
news:475570a4$1@newsgroups.borland.com...
> I received the error/exception 'IOHandler value is not valid'.
That error only occurs if you do not have a
TIdSSLIOHandlerSocketBase-derived component, such as TIdSSLIOHandlerOpenSSL,
assigned to the TIdHTTP's IOHandler property.
> OK, I searched around and find out I need a 'Handler' component,
> which I did not need before (code has gone unchanged since 2004)
Yes, you did. TIdHTTP has never implemented SSL directly. It has always
required a separate SSL component be attached to it.
> I try out TIdServerIOHandlerSSLOpenSSL
That is a server-side IOHandler, not a client-side IOHandler. TIdHTTP is a
client-side component. You can't use TIdServerIOHandlerSSLOpenSSL with it.
Gambit