SOLVED: zf2 “Cannot handle content type ‘application/json’ automatically”
I have to admit, this was quite annoying to resolve and didn’t really have to be an issue in the first place. I’m using Zend Framework 2.3 and the following was my code: use Zend\Http\Client; use Zend\Http\Request; … $client = new Client($url); $client ->setHeaders([ ‘Content-Type’ => ‘application/json’, ]) ->setOptions([‘sslverifypeer’ => false]) ->setMethod(‘POST’) ->setParameterPost($params); The problem? […]