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

Transition from Http.QuickRequestParams to Http.HttpParams

Provides instructions for replacing deprecated QuickRequestParams method calls with HttpParams.

Chilkat Delphi DLL Downloads

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

begin
success := False;

http := CkHttp_Create();

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

json := CkJsonObject_Create();
CkJsonObject_UpdateInt(json,'param1',100);
CkJsonObject_UpdateString(json,'param2','test');

//  ------------------------------------------------------------------------
//  The QuickRequestParams method is deprecated:

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

//  ...
//  ...

CkHttpResponse_Dispose(responseObj);

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

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

CkHttp_Dispose(http);
CkJsonObject_Dispose(json);
CkHttpResponse_Dispose(responseOut);