Sub Process_Globals
Private su As StringUtils
Private ec As B4XCipher
End Sub
Private Sub request
Dim job As HttpJob
job.Initialize("", Me)
job.PostString(link&/req, "q="&su.EncodeBase64(ec.Encrypt("client".GetBytes("UTF8"),"server")))
Wait For (job) JobDone (j As HttpJob)
Log("J: " & j.Success)
If j.Success Then
MsgboxAsync(j.GetString, "Response")
End If
End Sub