Hi all,
Cannot figure out how to send get/post request to an https server.
Rigth now i'm experiencing with my own local server which has a private certificate installed. Everything is ok if i test with postman.
I'm using OkHttpUtils2 version 2.82.
I've found several posts recommanding to use .initializeAcceptAll but i can't find this option when typing job.
what's wrong ?
thank's for you'r help !
Cannot figure out how to send get/post request to an https server.
Rigth now i'm experiencing with my own local server which has a private certificate installed. Everything is ok if i test with postman.
I'm using OkHttpUtils2 version 2.82.
I've found several posts recommanding to use .initializeAcceptAll but i can't find this option when typing job.
what's wrong ?
thank's for you'r help !
B4X:
Sub sendBooking2Api(record As Booking)
Dim job As HttpJob
job.Initialize("",Me)
job.PostString("https://" & Globals.Api_MainAddress2 & "/bookings/store",record.GetApiString())
LogColor("https://" & Globals.Api_MainAddress2 & "/bookings/store" & "?" & record.GetApiString(),Colors.Magenta)
wait for (job) JobDone (job As HttpJob)
If job.Success Then
Log(job.GetString)
record.IsSent2Api()
Else
End If
End Sub