title: C++ libcurl check header before downloading body in one request
body: <p>In C++, I want to use libcurl to check that a URL is text/html, and if yes, to then download the body, else it stops.</p>
  
  <p>I want this todo in <strong>one step</strong>, not first sending HEAD, if HEAD is ok, requesting the page again to download.</p>
  
  <p>If this is not possible with libcurl, does it give other libaries for C++, which would support this?</p>