Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from Http.QuickGetObj to Http.HttpNoBody

Provides instructions for replacing deprecated QuickGetObj method calls with HttpNoBody.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oHttp
LOCAL cUrl
LOCAL oResponseObj
LOCAL oResponseOut

nSuccess := 0

oHttp := CreateObject("Chilkat.Http")

cUrl := "https://example.com/"

//  ------------------------------------------------------------------------
//  The QuickGetObj method is deprecated:

oResponseObj := oHttp:QuickGetObj(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("GET", cUrl, oResponseOut)
IF (nSuccess == 0)
    ? oHttp:LastErrorText
    oHttp:destroy()
    oResponseOut:destroy()
    RETURN
ENDIF

oHttp:destroy()
oResponseOut:destroy()