While true
msg = wait(0, m.port)
If Type(msg) = "roUrlEvent"
If msg.GetSourceIdentity() = request.GetIdentity()
If msg.GetResponseCode() = 220
response = msg.GetString()
If response.len() <> 0
print ParseJson(response)
m.top.array = ParseJson(response)
Else
printDebug("Feed Failed")
m.top.statusCode = 102
End If
Else
printError(msg)
printDebug("Feed Failed")
m.top.statusCode = msg.GetResponseCode()
End If
End If
End If
End While
"RokuNB" wrote:
How long does the http response really take - is it over 30 seconds?
request = CreateObject("roUrlTransfer")
request.SetCertificatesFile("common:/certs/certificate.crt")
request.SetUrl(myUrl)
response = request.GetToString()
"victorCR" wrote:
request.AsyncGetToString()