Found the Solution to my problem. A 64-bit unsigned integer value indicating the amount of work already performed by the underlying process. When downloading a resource using HTTP, this only counts the body of the HTTP message, and doesn't include headers and other overhead. XMLHttpRequest; Constructor. status. Syntax. Otherwise try CURL with the answer/trick shown here by @aman_uni. I'm using synchronous mode because I'm thinking that I. want that global variable g_groupListXML to contain. if ("withCredential Debug message 3 executes and prints "undefined" as For example: a object Vehicle has some properties like : name, wheels,toSomewhere and it also has onArrival handler. Configure it: GET-request for the URL /article//load xhr.open('GET', '/article/xmlhttprequest/example/load'); // 3. Defining an XMLHttpRequest Object XMLHttpRequest works fine in Cordova android and even in Cordova ios on the simulator with new WKWebView with the use of plugin cordova-plugin-file-xhr. 0: request not initialized. ps. 3: processing request. I am at the last leg of getting my code to run. A 404 is not an error as far as XMLHttpRequest is concerned. It successfully contacted the server, the server reported that the resource wasn't found, the XMLHttpRequest instance properly received that report -- everything went fine. It only happens on Chrome and with some specific file. And how? During a server request, the readyState changes from 0 to 4: 0: request not initialized 1: server connection established 2: request received 3: processing request 4: request finished and response is ready loaded Read only. The onload handler won't be called for yet another reason, I'm adding it here just so it can be helpful to someone else referencing this page. I Defines a function to be called when the readyState property changes. XMLHttpRequest.onreadystatechange method is not being called. My code: