A roUrlTransfer object transfers data to or from remote servers specified by URLs. It can perform mutual authentication with a web server.
This object is created with no parameters:
If using HTTPS, the developer must specify a certificate file by calling
SetCertificatesFile() with a .pem file that includes the certificate authority cert (like Verisign, Thawte, etc., or your own with OpenSSL) that signed the web server certificate. This must be called before making a request. The developer can also use the Roku standard cert bundle (which contains certificates for most common signing authorities) stored in common:/certs/ca-bundle.crt; or download the CA certificate here.
The web server can authenticate that the requested connection is from a Roku Streaming Player and that the request is from your application by taking the following actions:
In order for your web server to perform the steps above to authenticate your Roku Streaming Player, your application needs to call the following functions before performing any https requests:
object.SetCertificatesFile("common:/certs/ca-bundle.crt") object.AddHeader("X-Roku-Reserved-Dev-Id", "") object.InitClientCertificates()