Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: idhttpserver check if ssl is set
| Subject: | Re: idhttpserver check if ssl is set |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 27 Feb 2007 10:37:45 |
"API" <ari.pikivirta@kolumbus.fi> wrote in message
news:45e452ba$1@newsgroups.borland.com...
> i've tried to check if ssl iohandler is set on the
> http server's get method without success
Simply use the 'is' operator to check the RTTI type of the IOHandler.
> it's set on the component properties and
> comparing to NIL doesn't work - it seems to
> be always both managed and something else than NIL.
The IOHandler is never nil while the component is active. If you do
not have your own IOHandler assigned, a default one is created
internally when the component is activated.
> how to check if iohandler is assigned to ssl on server,
> via idcontext.connection or something?
with AContext.Connection do
begin
if (IOHandler is TIdSSLIOHandlerSocketBase) and (not
TIdSSLIOHandlerSocketBase(IOHandler).PassThrough) then
// SSL is active
end;
Gambit