Sample code for 30+ languages & platforms
Node.js

Transition from Http.QuickRequest to Http.HttpNoBody

Provides instructions for replacing deprecated QuickRequest method calls with HttpNoBody.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

    var http = new chilkat.Http();

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

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

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

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  Do the equivalent using HttpNoBody.
    //  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.HttpNoBody(verb,url,responseOut);
    if (success == false) {
        console.log(http.LastErrorText);
        return;
    }


}

chilkatExample();