Hi Erel!,
I really need help on HttpUtils2, I use poststring method to put input criteria into php code.
Dim Job As HttpJob
Job.Initialize("JobPostName",Me)
Job.PostString ("http://xxxxxx.com/getmysql.php","tbid=mytable" & "&mday=" & itemday & "&mmonth=" & itemmonth & "&myear=" & itemyear )
I can have correct content only first request.
Dim tempstr As String
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
Select Job.JobName
Case "JobPostName"
tempstr = Job.getstring
Let say I have result like this.
======
Name:Mr.AAA Salary:AAA
Name:Mr.BBB Salary:BBB
Name:Mr.CCC Salary:CCC
Name:Mr.DDD SalaryDD
Name:Mr.EEE Salary:EEE
======
Then I try changing criteria on next request but I still get the same content. Seem HttpUtils does not fetch new data or pending on cookie something, I don't know. Pls advise,thanks.
@sorex! I trid but not work, I still have the same result. I try manually request via php and work fine but not work via b4a httputilss poststring method. I hope I can have luck form Erel.
Hi Manfred, After declare job object then I use the poststring method, get content and release at final. For next req, I do the same thing, then job is new created every time. I notice that the second req is too fast seem no fetch and so no new data loaded. And I just doubt that why it work on simulator but not work on real device (via b4a bridge).
Hi Manfred, After declare job object then I use the poststring method, get content and release at final. For next req, I do the same thing, then job is new created every time. I notice that the second req is too fast seem no fetch and so no new data loaded. And I just doubt that why it work on simulator but not work on real device (via b4a bridge).
chaiwatt: since the parameters are all small you could go for get instead of post with the randomize in the url as parameter.
(don't forget to search/replace the $_POST with $_GET in the php file)