PHP CURL prob - error 56 - CURLE_RECV_ERROR

Hi there,
I have a script which uses CURL to pull data.
It works great for most of the API request function except for one. I know there is a bit of data to be pulled but if iI set CURLOPT_RETURNTRANSFER to 0 then i can see the chunk data but cut off and i have the error number ‘56’ and error message which says “[COLOR=#000000][FONT=Calibri]Problem (3) in the Chunked-Encoded data”. On the other hand setting the [/FONT][/COLOR]CURLOPT_RETURNTRANSFER to 1 then curl_exec returns false and the same errors show up.
I have tried to set the buffer size higher, increase timeout but still no success.
Can someone help please.
Thanks
Jerome