title: cURL returns empty output from valid url - no errors reported
body: <p>If you just enter the urls into the browser you can see that both work, cdon works even without javascript, have they blocked cURL somehow?</p>
  
  <p>I'm trying to build a scraper to benifit legal movies online which would benifit them a whole lot, seems stupid blocking scrapers in general imho. Although I'm far from sure that's whats going on here! Might be just an error somewhere..</p>
  
  <pre><code>// Works
  get_file1('http://sfanytime.com/sv-SE/Sokresultat/?field=all&amp;q=The+Matrix', '/', 'sfanytime.html');
  
  // Saves a blank 0 KB file
  get_file1('http://downloads.cdon.com/index.phtml?action=search&amp;search_terms=The+Matrix', '/', 'cdon.html');
  
  function get_file1($file, $local_path, $newfilename) {
      $out = fopen($newfilename, 'wb');
      if ($out === FALSE) {
          return false;
      }      
      $ch = curl_init();             
      curl_setopt($ch, CURLOPT_FILE, $out);
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt($ch, CURLOPT_URL, $file);                  
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  
      curl_exec($ch);
      $error = curl_error($ch);
      if (strlen($error) &gt; 0) {
              echo "&lt;br&gt;Error is : ". $error;
          return false;
      }
      curl_close($ch);
      return true;
  }
  </code></pre>