Sample code for 30+ languages & platforms
Node.js

Transition from Http.QuickRequestParams to Http.HttpParams

Provides instructions for replacing deprecated QuickRequestParams method calls with HttpParams.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

    var http = new chilkat.Http();

    var verb = "GET";
    var url = "https://example.com/";

    var json = new chilkat.JsonObject();
    json.UpdateInt("param1",100);
    json.UpdateString("param2","test");

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

    // responseObj: HttpResponse
    var responseObj = http.QuickRequestParams(verb,url,json);
    if (http.LastMethodSuccess == false) {
        console.log(http.LastErrorText);
        return;
    }

    //  ...
    //  ...

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

    var responseOut = new chilkat.HttpResponse();
    success = http.HttpParams(verb,url,json,responseOut);
    if (success == false) {
        console.log(http.LastErrorText);
        return;
    }


}

chilkatExample();