handling chunked input from php://stdin

From: Date: Tue, 12 May 2009 22:58:58 +0000
Subject: handling chunked input from php://stdin
Groups: php.general 
Request: Send a blank email to php-general+get-292511@lists.php.net to get a copy of this message
I have a server running that receives xml formatted events from other services I have no control over. For certain events the transfer-encoding is chunked. I was just doing $input = file_get_contents('php://stdin'); and this works well until there is chunked input. Then I tried $handle = fopen('php://input', "rb"); $input = ''; while (!feof($handle)) { $input .= fread($handle, 8192); } fclose($handle); And that gives about the same result, has anyone else come across this and how did they solve it? Thanks in advance -- View this message in context: http://www.nabble.com/handling-chunked-input-from-php%3A--stdin-tp23512171p23512171.html Sent from the PHP - General mailing list archive at Nabble.com.

« previous php.general (#292511) next »