Hi!
The attached patch implements automatic decoding of chunked
transfer-encoding.
From what I see in the patch, it requires chunked data prefix to be:
XXX\r\n
where XXX are from 1 to 3 hex digits. However RFC 2616 defines chunk
size as arbitrarily long sequence of HEX digits, and also allows for
some stuff (extensions) to be added to the end. I wonder if it'd be
better to treat all hex digits as size and then ignore everything until
\r\n.
Also, I understand that by the RFC chunked encoding should never be sent
to HTTP/1.0 clients. So, by default this should never happen unless you
manually set protocol version to 1.1 (or the server is broken).
--
Stanislav Malyshev, Zend Software Architect
s...@zend.com http://www.zend.com/
(408)253-8829 MSN: s...@zend.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php