title: curl_exec causes php script to stop doing anything
body: <p>When I run curl on a particular url, the site stops responding and doesn't generate an error, despite my having set error reporting to on. I've tried setting the curl timeouts to low values, and it generates an error then, so I know its not timing out.</p>
  
  <p>The main thing I want to know is, how could that even happen, and how can I figure out why?</p>
  
  <p>The url I'm trying to access is a call to the Factual api, and the url I'm using here </p>
  
  <blockquote>
    <p>(<a href="http://api.factual.com/v2/tables/bi0eJZ/read?api_key=*apikey*&amp;filters=" rel="noreferrer">http://api.factual.com/v2/tables/bi0eJZ/read?api_key=*apikey*&amp;filters=</a>{"category":"Automotive","$loc":{"$within":{"$center":[[41,-74],80467.2]}})</p>
  </blockquote>
  
  <p>Works when you put it in a browser. The php script works as intended if you change the latitude and longitude to essentially any other values.</p>
  
  <pre><code>error_reporting(E_ALL);
  ini_set('display_errors', '2');
  $url="http://api.factual.com/v2/tables/bi0eJZ/read?api_key=*apikey*&amp;filters={\"category\":\"Automotive\",\"\$loc\":{\"\$within\":{\"\$center\":[[41,-74],80467.2]}},\"website\":{\"\$blank\":false}}";
  Echo "\n\n1";
  
  $ch = curl_init($url);
  Echo 2;
  curl_setopt($ch, CURLOPT_HEADER, 0);
  Echo 3;
  curl_setopt($ch, CURLOPT_POST, 1);
  Echo 4;
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,15);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_TIMEOUT,30);
  Echo 5;
  $output = curl_exec($ch) or die("hhtrjrstjsrjt".curl_error($ch));   
  Echo 6;
  curl_close($ch);
  Echo "out: ".$output;
  </code></pre>