MSGreg
13 years agoVisitor
SetCertificatesDepth and avoid calling non-existent methods
I've used ifUrlTransfer.SetCertificatesDepth(3) in Version 4.7/4.8. It was required for communicating successfully to Dropbox over https.
A customer is reporting that my https communication is crashing my app on a Roku box running version 3.1.
What version(s) of BrightScript supports the ifUrlTransfer.SetCertificatesDepth(Integer) method?
Is there a way to verify the function exists before calling it?
Perhaps:
A customer is reporting that my https communication is crashing my app on a Roku box running version 3.1.
What version(s) of BrightScript supports the ifUrlTransfer.SetCertificatesDepth(Integer) method?
Is there a way to verify the function exists before calling it?
Perhaps:
http = CreateObject("roUrlTransfer")
if http.DoesExist("SetCertificatesDepth") then http.SetCertificatesDepth(3) ' Does this work to prevent calling non-existent methods?