ZF-7382: Zend_Http_Client_Adapter_Curl doesn't detect Transfer-Encoding: chunked properly

Issue Type: Bug Created: 2009-07-24T11:25:30.000+0000 Last Updated: 2011-02-03T22:04:59.000+0000 Status: Open Fix version(s): Reporter: Michael Kelly (osmose) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_Client

Related issues: Attachments:


The HTTP/1.1 Spec states that messages header field values may be preceded by any amount of LWS (… ). The Curl adapter checks if a message is chunked by doing a string position check for "Transfer-Encoding: chunked\r\n", which will not detect valid headers with excess whitespace like "Transfer-Encoding: chunked\r\n". If this check succeeds, it removes the header as Curl automatically handles chunked messages.

This results in the Zend_Http_Response trying to decode the message as if it were chunked and throwing an error that the message doesn't appear to be chunked.


Posted by Faolan Cheslack-Postava (fcheslack) on 2011-02-03T22:04:59.000+0000

Still present in ZF 1.11.3

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.