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 ( http://w3.org/Protocols/rfc2616/… ). 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.