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: | "Kevin Frevert" (kev..@workdrinkingicewater) |
| Date: | Tue, 4 Dec 2007 12:58:31 |
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:475594b2$1@newsgroups.borland.com...
>
> "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.
>
A little background, I am interfacing with the USPS international customs
form generation "web service". I just found out from the floor supervisor
that they have never used the generated forms. They ignore the 'Print'
pop-up and handle the paperwork manually (why is a long answer). I'm so
glad he left out that little detail from the escalated 'emergency' helpdesk
ticket and I wasted almost two days.
Apparently this has never worked since USPS went to https. The issue came
to light because of a missing property exception at run-time(D6->2007
issue).
Now the component has been updated, the application is 'working' normally.
>> 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.
That was stupid, yes it was the other ssl one. I wrote this message on my
laptop and the project is on my desktop and I copy/pasted from the first
thing I saw that had ssl from the help.
Thanks,
krf
none