Wish OkHttp - PostJSON

klarsys

Active Member
Licensed User
Longtime User
Request to add following method to mainstream OkHttp library:


B4X:
'Sends a POST request with the given string in JSON format
Public Sub PostJSON(Link As String, JSON As String)
    req.InitializePost2(Link, JSON.GetBytes("UTF8"))
    req.SetContentType("application/json")
    CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
See my Dropboxclass! It is USING posting json to a url... It is already available. No need to update okhttputils.
 
Top