8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

Response problem #18

Closed bartek1234321 closed 9 years ago

bartek1234321 commented 9 years ago

I do something like this: $client = $this->get('guzzle.client.xxx'); $response = $client->post('some_url'); echo $response->getBody()->getContents(); // returns empty string, why?

I do request to http://xxx.yyy/api/test and in ma browser I get correct reponse in json {"zzz":111} what is wrong?

bartek1234321 commented 9 years ago

$response->getBody(); it's enough ;) my fault sorry ;)