# PHP CURL prob - error 56 - CURLE\_RECV\_ERROR

**URL:** https://forum.kirupa.com/t/php-curl-prob-error-56-curle-recv-error/332159
**Category:** programming
**Created:** [February 18, 2014, 12:36pm UTC](https://forum.kirupa.com/t/php-curl-prob-error-56-curle-recv-error/332159 "2014-02-18T12:36:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)
#### Post date: [February 18, 2014, 12:36pm UTC](https://forum.kirupa.com/t/php-curl-prob-error-56-curle-recv-error/332159/1 "2014-02-18T12:36:18Z")

</div>

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
