title: File is getting truncated with cURL
body: <p>I am using the following method to get JSON from a url. It works when I output the json in the php shell, but on the website, the output is truncated. Is there an explanation.
  Here is the url I am trying to retrieve: <a href="http://energylens.sfsprod.is4server.com:8080/proc/slope_intercept_tester" rel="nofollow">http://energylens.sfsprod.is4server.com:8080/proc/slope_intercept_tester</a></p>
  
  <pre><code>function get($url){     
    $curl_handle=curl_init();           
    curl_setopt($curl_handle,CURLOPT_URL,$url);     
    curl_setopt($curl_handle,CURLOPT_HTTPGET,1);     
    curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,0);          
    curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);          
    $reply = curl_exec($curl_handle);     
    curl_close($curl_handle);                                                               
    return $reply;                                             
  }    
  </code></pre>
  
  <p>Here is my truncated output:</p>
  
  <p>{"status":"success","type":"PROCESS_CODE","properties":{"operation":"save_proc","name":"slope_intercept_tester","script":{"winsize":10,"materialize":"true","timeout":80000,"func":" function(buffer, state){ var outObj = new Object(); var timestamps = new Object(); outObj.msg = 'processed'; if(typeof state.slope == 'undefined'){ state.slope = function(p1, p2){ if(typeof p1 != 'undefined' &amp;&amp; typeof p2 != 'undefined' &amp;&amp; typeof p1.value != 'undefined' &amp;&amp; typeof p1.ts != 'undefined' &amp;&amp; typeof p2.value != 'undefined' &amp;&amp; typeof p2.ts != 'undefined'){ if(p1.ts == p2.ts) return 'inf'; return (p2.value-p1.value)/(p2.ts-p1.ts); } return 'error:undefined data point parameter'; }; state.intercept = function(slope,p1){ if(typeof p1 != 'undefined' &amp;&amp; typeof p1.value != 'undefined' &amp;&amp; typeof p1.ts != 'undefined'){ return p1.value - (slope*p1.ts); } return 'error:undefined data point parameter'; }; } if(typeof state.multibuf == 'undefined'){ state.multibuf = new Object(); } outObj.inputs = new Array(); var noted = new Object(); for(i=0; i=2){ for(j=0; j</p>