Function http_get_to_string_with_retry() as String
timeout% = 1500
num_retries% = 5
str = ""
while num_retries% > 0
' print "httpget try " + itostr(num_retries%)
event = wait(timeout%, m.Http.GetPort())
if type(event) = "roUrlEvent"
str = event.GetString()
else if event = invalid
REM reset the connection on timeouts
m.Http = CreateURLTransferObject(m.Http.GetUrl())
timeout% = 2 * timeout%
print "roUrlTransfer::AsyncGetToString(): unknown event"
num_retries% = num_retries% - 1
I've used AsyncGettoString where really large data sets come across and haven't had it error out on me. If this was an actual limitation, then many RSS based channels would not work at all.
Member function not found in BrightScript Component or interface.
What minimum firmware version is RetainBodyOnError(retain As boolean) supported on? It looks like it works fine on v4.x+, but I have an older model running FW 3.1 that doesn't seem to support it. The PDf docs don't list the method, and the online docs don't list what version the methods were introduced in.
I believe this is supported in 4.9 and later firmware.