title: PHP curl not working well as browser does
body: <p>I write a curl request in PHP for getting data from a Chinese site.</p>
  
  <p>I made a simple C# application , it works well as expected.</p>
  
  <p>Also I made my request via Firefox or Chrome and they work well.</p>
  
  <p>Working well means that 800 data received.</p>
  
  <p>But in PHP and Cpanel, it's not working well.</p>
  
  <p>I mean that i receive just single data.</p>
  
  <p>How can i debug where the problem is?</p>
  
  <pre><code>$url = "http://search.ickey.cn/site/getsup?keyword=" . $query."&amp;t=".array_sum( explode( ' ' , microtime() ) ) ;
  $curl_options = array(
  CURLOPT_URL =&gt; $url,
  CURLOPT_HEADER =&gt; 0,
  CURLOPT_RETURNTRANSFER =&gt; TRUE,
  CURLOPT_TIMEOUT =&gt; 0,
  CURLOPT_SSL_VERIFYPEER =&gt; 0,
  CURLOPT_FOLLOWLOCATION =&gt; TRUE,
  CURLOPT_ENCODING =&gt; 'gzip,deflate',
  CURLINFO_HEADER_OUT=&gt; TRUE,
  CURLOPT_HTTPGET =&gt; TRUE,
  CURLOPT_VERBOSE=&gt;TRUE,
  CURLOPT_USERAGENT=&gt;$_SERVER["HTTP_USER_AGENT"],
  CURLOPT_REFERER =&gt; "http://search.ickey.cn/"
  );                            
  $ch = curl_init();               
  curl_setopt_array( $ch, $curl_options );            
  $jsonresponse = curl_exec($ch);
  </code></pre>
  
  <p>for test:
  <a href="http://search.ickey.cn/site/getsup?keyword=3305&amp;num=2000&amp;t=1495644392" rel="nofollow noreferrer">http://search.ickey.cn/site/getsup?keyword=3305&amp;num=2000&amp;t=1495644392</a></p>
  
  <p>compare response in Chrome and in Php</p>