title: Getting the Content-Type with AngularJS or jQuery
body: <p>I want to make a directive with AngularJS which displays a media (an image or a video).</p>
  
  <p>To achieve this goal I have to determine the kind of media, in order to do that I wanted to make an AJAX reqest to the url and get the Content-Type header, but I have not find something like that in the documentation.</p>
  
  <p>Have you some hints to do that?</p>