Hannes Magnusson wrote:
> On Sun, Jan 25, 2009 at 22:43, Giovanni Giacobbi <giova...@giacobbi.net> 
> wrote:
>> The problem turned out to be an invalid interpretation of the HTTP/1.1 
>> protocol with "Transfer-Encoding: chunked" by the HTTP stream context, which 
>> caused get_sdl() to parse a WSDL including the chunk tags (hex numbers).
>>
>> Chunked encoding is used by Apache 2.0 when "Content-Length" is unavailable, 
>> the data content being sent is large enough, and the protocol is HTTP/1.1.
> 
> PHP streams do not support chunked encoding, and I assume SOAP doesn't
> either (although it does reinvent bunch of things, I don't think
> chunked encoding was added). I thought the docs were quite explicit on
> the subject.. if not, please open a doc bug.

Then there is a problem, HTTP/1.1 mandates support for chunked encoding.

In Apache's case, the stream should be dechunked before being passed to cgi,
fcgid or apache2handler.  The appropriate EOF state should be signalled when
the chunked stream is exhausted.  So how you are seeing the chunk headers
is beyond me.  Perhaps this hop-by-hop header should be eaten in apache
before passing headers to the application?


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to