I know this question has been asked a number of times. I seem to have a bit of a different problem. In my situation after the exception is thrown initially it works fine (
That error means that the TIdSSLIOHandlerSocketOpenSSL.PassThrough
property is being set to False
(which would happen when posting to an HTTPS URL) before TIdSSLIOHandlerSocketOpenSSL.Init()
has been called to intialize the SSL context first.
Sounds like a bug. Next time you get the error, can you grab the stack trace?