Chunked-Encoded data error in php cURL requests

(1 comment)

Few days ago we got a new problem, one part of our website stopped working, we used guzzle with Symfony2 to make requests to our RESTful API. After checking logs the only thing I could find was something like that:

[curl] 56: Problem (2) in the Chunked-Encoded data [url]

We changed guzzle to guzzlehttp as it was outdated, tried few other things (creating request and adding data, json request, making request header and body and sending all at once (client->put) but nothing helped. Then focused on main problem, cURL.

Actually it was problem of cURL itself (yep, that is very strange) and after updating it to 7.36 version problem solved by itself.

Steps:

  1. sudo add-apt-repository ppa:costamagnagianfranco/ettercap-stable-backports
  2. sudo apt-get update && sudo apt-get install curl

Happy Coding...

Current rating: 5

Comments

Gianfranco 8 years, 3 months ago

nice to see my ettercap backport has this side effect :)

Link | Reply
Currently unrated

New Comment

required

required (not published)

optional

required