RTC Forums
November 21, 2024, 10:03:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Problem with TRtcDataRequest and https in Windows 2003  (Read 5075 times)
xstarter
RTC Expired
*
Posts: 8


« on: July 02, 2019, 11:53:16 AM »

Hello,

My project make requests to webservers via HTTPs (property RtcDataRequest.UseSSL=True). It works well everywhere, but not in Windows 2003.
In Windows 2003 it got a message:
RtcHttpClientException Error Sending the Request [Code #12157].

I have use RealThinClient SDK v9.50. How it possible to fix this problem? Thanks in advance.

Test project (Delphi XE) available here:
https://cloud.mail.ru/public/Bp9z/i75LVEhJC

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: July 02, 2019, 12:07:46 PM »

According to this MSDN article, 12157 is a WinInet error code for ERROR_INTERNET_SECURITY_CHANNEL_ERROR, which basically means that the application experienced an internal error loading the SSL libraries. Since that is a WinInet API issue, there is not much I can do about it, but ... you could try using the WinHTTP API on that PC by setting "useWinHTTP=TRUE" on the TRtcHttpClient component, or ... you could try using 3rd-party encryption components (StreamSec Tools) for SSL encryption on that PC.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 on: July 02, 2019, 12:32:30 PM »

I'm not sure if that is related, but ... I just remembered that there are two global variables which define how the TRtcHttpClient component uses SSL with WinInet and WinHTTP APIs. One is RTC_WINET_SECURITY_FLAGS in the rtcWInetHttpCliProv.pas unit (used with the WinInet API), the other is RTC_WINHTTP_SECURITY_FLAGS in the rtcWinHttpCliProv.pas unit (used with the WinHTTP API). If the Web Server you are connecting to has specific requirements for SSL, you might have to change the value of these variables to get the Client to work with your Web Server over SSL. In addition to the above, the WinHTTP API also has a security level, which is defined by setting the RTC_WINHTTP_AUTOLOGON_SECURITY_LEVEL global variable in the rtcWinHttpCliProv.pas unit.
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.024 seconds with 17 queries.