Closed bartek1234321 closed 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?
$response->getBody(); it's enough ;) my fault sorry ;)
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?