RTC Forums

Subscription => Support => Topic started by: GregStevenson on July 08, 2015, 02:48:42 PM



Title: Determining if request came in via HTTP or HTTPS
Post by: GregStevenson on July 08, 2015, 02:48:42 PM
Given a TRtcDataServer object is there a way to navigate to its associated TRtcHttpServer object to see if the CryptPlugin in nil or not?
Is there a better way to determine SSL status of a Request?


Title: Re: Determining if request came in via HTTP or HTTPS
Post by: D.Tkalcec (RTC) on July 08, 2015, 07:15:53 PM
Since each TRtcHttpServer component will be running on adifferent port, you can use the LocalPort property of the TRtcDataServer(Sender) object to check where the connection arrived.

Best Regards,
Danijel Tkalcec


Title: Re: Determining if request came in via HTTP or HTTPS
Post by: GregStevenson on July 08, 2015, 11:55:51 PM
 LocalPort plus LocalAddr allows me to map back to original assignments as to whether the socket is a secure connection or not.

Thanks much for the info!!
--Greg