I'm performing the following to post some transactions back to a website.
Even though the list has 22 items in it, I only ever get to about the 5th line before the procedure finishes, hence the rest of the items never get posted. Can anyone recommend a better way to iterate though the list and call the URL, so all items get actioned. The URL basically takes an encoded string, that get's parsed by the server and posted to a database.
This is being used as part of an upcoming demo.
Thanks in advance.
Colin
B4X:
lList=File.ReadList(File.DirRootExternal, "mylist.txt")
lCount=lList.Size-1
For forcount=0 To lList.Size-1
lLine=lList.get(forcount)
Call="http://192.168.1.133/mylist/sync.aspx?"&lLine
lRequest.InitializeGet(Call)
lRequest.timeout=20000
If Httpclient1.execute(lRequest,1)=False Then
Return
End If
Next
Even though the list has 22 items in it, I only ever get to about the 5th line before the procedure finishes, hence the rest of the items never get posted. Can anyone recommend a better way to iterate though the list and call the URL, so all items get actioned. The URL basically takes an encoded string, that get's parsed by the server and posted to a database.
This is being used as part of an upcoming demo.
Thanks in advance.
Colin