Visual Basic 6.0
Visual Basic 6.0
Transition from Http.QuickRequestParams to Http.HttpParams
Provides instructions for replacing deprecated QuickRequestParams method calls with HttpParams.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim http As New ChilkatHttp
Dim verb As String
verb = "GET"
Dim url As String
url = "https://example.com/"
Dim json As New ChilkatJsonObject
success = json.UpdateInt("param1",100)
success = json.UpdateString("param2","test")
' ------------------------------------------------------------------------
' The QuickRequestParams method is deprecated:
Dim responseObj As ChilkatHttpResponse
Set responseObj = http.QuickRequestParams(verb,url,json)
If (http.LastMethodSuccess = 0) Then
Debug.Print http.LastErrorText
Exit Sub
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 ChilkatHttpResponse
success = http.HttpParams(verb,url,json,responseOut)
If (success = 0) Then
Debug.Print http.LastErrorText
Exit Sub
End If