Re: [PHP] handling chunked input from php://stdin

2009-05-13 Thread whisperstream
Thanks for the code, but I figured out the issue I was having. My problem was actually getting the data not parsing chunked text. After taking a wireshark trace of the traffic I realised that the chunked xml didn't even hit the php process and instead died somewhere in IIS's fastcgi process. If

Re: [PHP] handling chunked input from php://stdin

2009-05-13 Thread Nathan Rixham
Shawn McKenzie wrote: whisperstream wrote: 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 i

Re: [PHP] handling chunked input from php://stdin

2009-05-12 Thread Shawn McKenzie
whisperstream wrote: > 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 chunk

[PHP] handling chunked input from php://stdin

2009-05-12 Thread whisperstream
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 = fop