PostString - httputils

Sirrab

Member
Licensed User
Longtime User
Hi All,

How do check to see if the jobdone has been completed when doing a poststring in a loop.

B4X:
For i = 0 To 5
        wdate = DateTime.DateParse(ttdate)
        ndate = DateTime.Add(wdate,0,0,i)
        dateindex = i
        getdate = DateTime.date(ndate)
        getdata.Initialize("getd",Me)
        getdata.PostString("http://192.168.1.23/postgres.php?usedate=" & getdate,"")
        Log(getdate)
    Next

Thanks
Craig
 

casefox

New Member
Licensed User
Longtime User
Hi Craig,

Can you share your code that how you are accessing the url using 192.168.1.23 .. i tried but no luck...

Thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4X:
dim getdata as httpjob
getdata.Initialize("getd",Me)
getdata.PostString("http://192.168.1.23/postgres.php?usedate=" & getdate,"")
does the job...

@casefox what code are you trying and what means "no luck"? Any errors?
 
Upvote 0

Sirrab

Member
Licensed User
Longtime User
Hi Craig,

Can you share your code that how you are accessing the url using 192.168.1.23 .. i tried but no luck...

Thanks

Hi CaseFox,

In the end I changed the php code to pass all the data in one go. So I didn't need to run a for loop anymore.

Craig
 
Upvote 0
Top