RTC Forums
November 25, 2024, 12:08:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How to download files from HTTPS server by given HTTPS URL?  (Read 4534 times)
WilliamY
RTC License++
*****
Posts: 23


« on: August 17, 2011, 05:44:41 PM »

Hi,

Is there any sample code in RTC SDK to demo how to download files from HTTPS server by given HTTPS URL?

Thanks

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


« Reply #1 on: August 18, 2011, 06:07:31 PM »

The code for downloading files is identical, wether you use SSL encryption or not. You only need to set up the TRtcHttpClient component to use SSL encryption and connect to the SSL port. This means using port 443 instead of 80 if your Server is using the standard HTTPS Port and setting the "useSSL" property to TRUE if you want to use built-in Client side encryption, or connect 3rd-party encryption components to the "CryptPlugin" property if you want to use third-party encryption components for SSL encryption.

If you need an example project, take a look at the "File_Client" Project in the "Demos" folder. If you define the "StreamSecII" compiler directive in that project, you can also test the use of StreamSec Tools 2.1 for SSL encryption by rebuilding the project and enabling the "Cyrpt Plugin" checkbox.

Best Regards,
Danijel Tkalcec

Logged
WilliamY
RTC License++
*****
Posts: 23


« Reply #2 on: August 19, 2011, 04:16:26 AM »

Perfect!

Thanks,

William
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.