B4J Question Loop on httpjob

le_toubib

Active Member
Licensed User
Longtime User
Hi all
I m using a short for loop to send a poststring http job to a mysql server... (as I need to send a list)
This works fine most of the time but occasionally some of the posts do not reach server...
And I doubt get a server response
Is this the right way to send an array?
What am I doing wrong?
If the http job failed does it repeat automatically or should I check for its failure and resend ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use jRDC which supports batch commands. It will be simpler and more powerful.

You should handle failed jobs in JobDone event and send new requests. Http requests may fail from time to time.
Make sure to use the latest version of B4J as there was a bug in previous versions related to http requests silently failing.
 
Upvote 0
Top