RTC Forums
May 15, 2024, 05:06:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Determining if request came in via HTTP or HTTPS  (Read 3438 times)
GregStevenson
RTC Expired
*
Posts: 5


« 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?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
GregStevenson
RTC Expired
*
Posts: 5


« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 17 queries.