i'm doing a http GET request to a url which has a xml file and i need to get the response header 'Content-Lenght' ? Is there any way to get it? i must validate the size of the file before been abel to download it.
Here's my code
$http({
method : "GET",
url : "http://url/file.xml"
}).then(function mySucces(data) {
console.log(response);
$scope.content = response.data;
}, function myError(error) {
console.log(error);
$scope.content = error.statusText;
});