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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…