title: cURL try catch problem
body: <p>I'm trying to debug this <code>cURL</code>-operation. The <code>var_dump()</code> is returning <code>bool(false)</code></p>
  
  <p>How can I make it exit the try in that case?</p>
  
  <pre class="lang-php prettyprint-override"><code>function parse($url, $headonly = TRUE ){
      $agents = 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16';
      try
      {
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_HEADER, 0);
          curl_setopt($ch, CURLOPT_VERBOSE, FALSE);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
          curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
          curl_setopt($ch, CURLOPT_USERAGENT, $agents);
          curl_setopt($ch, CURLOPT_URL, $url);
          $curlResp = curl_exec($ch);
          curl_close($ch);
          var_dump($curlResp); //RETURNS bool(false)
          die;
  
          $resp = str_replace("class=l","class='l'",$curlResp);
          return $resp;
      }
      catch( Exception $e)
      {
          $strResponse = "";
          $strErrorCode = $e-&gt;getCode();
          $strErrorMessage = $e-&gt;getMessage();
          print_r($arrCurlInfo, $strErrorCode, $strErrorMessage);
          die;
      }  //end catch
  }
  </code></pre>