RTC Forums

Subscription => Support => Topic started by: WilliamY on August 17, 2011, 05:44:41 PM



Title: How to download files from HTTPS server by given HTTPS URL?
Post by: WilliamY 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


Title: Re: How to download files from HTTPS server by given HTTPS URL?
Post by: D.Tkalcec (RTC) 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



Title: Re: How to download files from HTTPS server by given HTTPS URL?
Post by: WilliamY on August 19, 2011, 04:16:26 AM
Perfect!

Thanks,

William