title: Get the http response for a URL in C++
body: <p>I want to simply get the HTTP response or simple pass/fail for a URL in C++</p>
  
  <p>Something like the AJAX call I use in JavaScript</p>
  
  <pre><code>$.ajax({
      url: "http://www.google.com",
      dataType: "html",
      timeout: 4 * 1000
  }).done(function() {
  
  })
  .fail(function() {
  
  });
  </code></pre>
  
  <p>Half the solutions I've seem far too convoluted. In search of a simpler way. </p>