title: Check if internet is available
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk">How to check for an active Internet Connection on iPhone SDK?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to check the internet reachability before sending a request to fetch something remotely.
  I googles, and found several SO questions relating to <a href="https://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk">this</a>. But i need to check internet connectivity for iOS4 and iOS5. How can i do that programatically ?</p>
  
  <p>2.) For example say i am downloading a big file (when there was internet). and suddenly the Internet goes down (Then the app might crash). So how can i avoid this ?</p>