In order to not confuse the Azure WebApp, inside the loop I set a "wait for Flag" after each tsNetPost command.
Something like this:
Code: Select all
repeat xxx
put false into sWebUploadDone --flag
put tsNetPost(pID,tURL,tHeaders,tServerString,"postResponse") into tError
wait until sWebUploadDone with messages
...
end repeat
on postResponse pID, pStatus, pBytes, pResult
put true into sWebUploadDone
--handle errors and returned data
...
...
end postResponse
So, while tsNetPost is not blocking, is the call back script also not blocking?
Thanks.
Trevix