title: curl always returning false
body: <p>The following code always echos false. Am I missing something?</p>
  
  <pre><code>$url = "https://www.google.nl/";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  if(curl_exec($ch)) {
      echo "true";
  }else{
      echo "false";
  }
  </code></pre>