The `php://temp` stream is not read from the beginning without issuing a seek command. There are some unexpected consequences of this behavior. For example, calling `$response->getBody()->getContents()` twice will return null the second time.
The
php://tempstream is not read from the beginning without issuing a seek command.There are some unexpected consequences of this behavior.
For example, calling
$response->getBody()->getContents()twice will return null the second time.