I apologize in advance if I'm wrong in entering the post, or if there is already a solution I did not look good in the forum.
I have an error with job.postString
'B4a version 5.02(1) + UttpUtils2 version 2.01
Sub Globals
Private ServerUrl As String="http://192.168.0.50/webform1.aspx" & "?query=" & "select count(adulti) as TotPersone FROM Prenotazioni"
'This work ==> Private ServerUrl As String=""http://192.168.0.50/webform1.aspx"
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("TABLEAU")
End Sub
Sub Activity_Resume
Dim job As HttpJob
job.Initialize("Job0", Me)
job.PostString(ServerUrl,"") ' <==== LINE ERROR
job.GetRequest.Timeout=2000
End Sub
ERROR:
java.lang.IllegalArgumentException: Illegal character in query at index 46:
http://192.168.0.50/webform1.aspx?query=select count(adulti) as TotPersone FROM Prenotazioni
Calling http://192.168.0.50/webform1.aspx?query=select count(adulti) as TotPersone FROM Prenotazioni with browser Firefoxwork the server responding fine: [{"TotPersone":1}]
Any help is appreciated
Best regards
Gnappos
I have an error with job.postString
'B4a version 5.02(1) + UttpUtils2 version 2.01
Sub Globals
Private ServerUrl As String="http://192.168.0.50/webform1.aspx" & "?query=" & "select count(adulti) as TotPersone FROM Prenotazioni"
'This work ==> Private ServerUrl As String=""http://192.168.0.50/webform1.aspx"
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("TABLEAU")
End Sub
Sub Activity_Resume
Dim job As HttpJob
job.Initialize("Job0", Me)
job.PostString(ServerUrl,"") ' <==== LINE ERROR
job.GetRequest.Timeout=2000
End Sub
ERROR:
java.lang.IllegalArgumentException: Illegal character in query at index 46:
http://192.168.0.50/webform1.aspx?query=select count(adulti) as TotPersone FROM Prenotazioni
Calling http://192.168.0.50/webform1.aspx?query=select count(adulti) as TotPersone FROM Prenotazioni with browser Firefoxwork the server responding fine: [{"TotPersone":1}]
Any help is appreciated
Best regards
Gnappos