A simple type: $body = $response->getBody(); $body->rewind(); // or $body->seek(0); $bodyText = $body->getContends(); => should be $bodyText = $body->getContents();