Wish OkHttp - PostJSON

klarsys

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


Code: Copy
'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
 
See my Dropboxclass! It is USING posting json to a url... It is already available. No need to update okhttputils.
 

Similar Threads

Back
Top