I have this simple usage of roURLTransfer:
xfer = CreateObject("roURLTransfer")
xfer.SetPort(port)
xfer.SetCertificatesFile("common:/certs/ca-bundle.crt")
xfer.SetURL(url)
if xfer.AsyncGetToString()
event = wait(timeout, port)
if type(event) = "roUrlEvent"
m.responseCode = event.GetResponseCode()
print "request took: " + timer.TotalMilliseconds().ToStr()
print "response code: " + m.responseCode.ToStr()
result = event.GetString()
endif
end if
The URL is an https:// URL and works fine in browser and other tools. On roku, the response code is always -1, the request only takes about 200ms, and the response is always blank. According to the documentation
https://developer.roku.com/docs/references/brightscript/events/rourlevent.md#getresponsecode-as-inte... the code means that cURL doesn't support the protocol. I don't understand this at all. Can somebody please advise?