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

Transition from Http.QuickRequest to Http.HttpNoBody

Provides instructions for replacing deprecated QuickRequest method calls with HttpNoBody.

Chilkat Delphi DLL Downloads

Delphi DLL
var
success: Boolean;
http: HCkHttp;
url: PWideChar;
verb: PWideChar;
responseObj: HCkHttpResponse;
responseOut: HCkHttpResponse;

begin
success := False;

http := CkHttp_Create();

url := 'https://example.com/';
verb := 'DELETE';

//  ------------------------------------------------------------------------
//  The QuickRequest method is deprecated:

responseObj := CkHttp_QuickRequest(http,verb,url);
if (CkHttp_getLastMethodSuccess(http) = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

//  ...
//  ...

CkHttpResponse_Dispose(responseObj);

//  ------------------------------------------------------------------------
//  Do the equivalent using HttpNoBody.
//  Your application creates a new, empty HttpResponse object which is passed 
//  in the last argument and filled upon success.

responseOut := CkHttpResponse_Create();
success := CkHttp_HttpNoBody(http,verb,url,responseOut);
if (success = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

CkHttp_Dispose(http);
CkHttpResponse_Dispose(responseOut);