I am using Kango framework to develop a cross-browser addon, using the following code I am making HEAD
request's utilizing Kango.XHR which is getting successfully executed (as shown in HTTP DEBUGGER) and the code below in my background script also returns data.status == 200
.
function doXHR(url) {
var details = {
method: 'HEAD',
url: url,
async: true
};
kango.xhr.send(details, function(data) {
if (data.status == 200) {
kango.console.log(data.status);
}
else { // something went wrong
kango.console.log('something went wrong');
}
});
};
Now, I want to get the value of Content-Length
response header from the above but have no clue how to do that?