php - Guzzle6 streams doesn't give me the exact output -


i have been trying integrate guzzle app , having trouble it. so, response object from

$response = $client->post(.....); 

the response of endpoint in json format. however, when try use following:

http/1.1 200 ok cache-control: no-store pragma: no-cache  {    // json here } 

because of can't use:

$array = json_decode($response->getbody()->getcontents()); 

how, can rid of showing response header in output of body?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -