I was trying to get the value of content-length header using jQuery.
var XHRObj = $.ajax({
type:'HEAD',
url:'https://www.udacity.com/public-api/v0/courses',
success:function(data) {
console.log( XHRObj.getResponseHeader('content-length') )
}
});
It's getting as null. I checked the URL response headers. It has content-length header.