Skip to content Skip to sidebar Skip to footer

Angularjs - Get Headers In Response

I'm doing a $http.get request to a https service which has an XML file and it need the headers('Content-length') to know it size. This's my code: $http({ method : 'GET', ur

Solution 1:

 console.log( data.headers('Content-Length'));
 console.log( data.headers('Content-type'));

Post a Comment for "Angularjs - Get Headers In Response"