Xojo Plugin
Xojo Plugin
Transition from Http.QuickRequestParams to Http.HttpParams
Provides instructions for replacing deprecated QuickRequestParams method calls with HttpParams.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim http As New Chilkat.Http
Dim verb As String
verb = "GET"
Dim url As String
url = "https://example.com/"
Dim json As New Chilkat.JsonObject
success = json.UpdateInt("param1",100)
success = json.UpdateString("param2","test")
// ------------------------------------------------------------------------
// The QuickRequestParams method is deprecated:
Dim responseObj As Chilkat.HttpResponse
responseObj = http.QuickRequestParams(verb,url,json)
If (http.LastMethodSuccess = False) Then
System.DebugLog(http.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using HttpParams.
// Your application creates a new, empty HttpResponse object which is passed
// in the last argument and filled upon success.
Dim responseOut As New Chilkat.HttpResponse
success = http.HttpParams(verb,url,json,responseOut)
If (success = False) Then
System.DebugLog(http.LastErrorText)
Return
End If