Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Http.QuickRequest to Http.HttpNoBody
Provides instructions for replacing deprecated QuickRequest method calls with HttpNoBody.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oHttp
LOCAL cUrl
LOCAL cVerb
LOCAL oResponseObj
LOCAL oResponseOut
nSuccess := 0
oHttp := CreateObject("Chilkat.Http")
cUrl := "https://example.com/"
cVerb := "DELETE"
// ------------------------------------------------------------------------
// The QuickRequest method is deprecated:
oResponseObj := oHttp:QuickRequest(cVerb, cUrl)
IF (oHttp:LastMethodSuccess == 0)
? oHttp:LastErrorText
oHttp:destroy()
RETURN
ENDIF
// ...
// ...
oResponseObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using HttpNoBody.
// Your application creates a new, empty HttpResponse object which is passed
// in the last argument and filled upon success.
oResponseOut := CreateObject("Chilkat.HttpResponse")
nSuccess := oHttp:HttpNoBody(cVerb, cUrl, oResponseOut)
IF (nSuccess == 0)
? oHttp:LastErrorText
oHttp:destroy()
oResponseOut:destroy()
RETURN
ENDIF
oHttp:destroy()
oResponseOut:destroy()