PHP Curl_exec output is getting trimmed
<p>I am hitting my content server which sends  multipart data.</p>

<p>When server response is small ( &lt; 40KB ) , I am getting full response data in <strong>$response</strong>
string. But when server response data is large ( > 112KB) its getting trimmed to 48KB
and my whole multipart data parsing is failing.</p>

<p>What should I do to get the whole 112KB data in $response string ?</p>

<pre><code>$options = array(
    CURLOPT_RETURNTRANSFER =&gt; true,     // return web page
    CURLOPT_HEADER         =&gt; false,    // don't return headers
    CURLOPT_FOLLOWLOCATION =&gt; true,     // follow redirects
    CURLOPT_ENCODING       =&gt; "",       // handle all encodings
    CURLOPT_USERAGENT      =&gt; "spider", // who am i
    CURLOPT_AUTOREFERER    =&gt; true,     // set referer on redirect
    CURLOPT_MAXREDIRS      =&gt; 10,       // stop after 10 redirects
);

$ch = curl_init( $this-&gt;url );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);


curl_setopt($ch, CURLOPT_HTTPHEADER, $arr_param);



$response = curl_exec( $ch );

$err     = curl_errno( $ch );
$errmsg  = curl_error( $ch );
$header  = curl_getinfo( $ch );

parseData($response);
</code></pre>

<p>Please help, what i am doing wrong here. </p>
