title: C++ How do i check i got an active connection to certain site
body: <p>C++ How do i check i got an active connection to certain site </p>
  
  <p>Basically my mini project require connection to the site somesite.com</p>
  
  <p>I want to upon launching my application, do a test to see if I can fetch data from somesite.com , if fetch.fail(), it will echo fail to establish connection to somesite.com</p>
  
  <p>How can i do this.</p>
  
  <p>Thanks for all the help !</p>