You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2018. It is now read-only.
In Zend Framework 1.12.12 I have found an issue when POSTing with a body using Zend_Http_Client.
I always receive a Zend_Http_Exception with the Message
Invalid header value detected
It is thrown in the _validateHeaderValue method because of the value of the Content-Length header being neither a string, nor an object nor having a method __toString(). The Content-Length is also set by the Zend_Http_Client in method _prepareBody
// Set the Content-Length if we have a body or if request is POST/PUT
if ($body || $this->method == self::POST || $this->method == self::PUT) {
$this->setHeaders(self::CONTENT_LENGTH, strlen($body));
}
strlen($body) of course delivers an integer, so the Exception will be thrown
The text was updated successfully, but these errors were encountered:
In Zend Framework 1.12.12 I have found an issue when POSTing with a body using
Zend_Http_Client
.I always receive a
Zend_Http_Exception
with the MessageIt is thrown in the
_validateHeaderValue
method because of the value of theContent-Length
header being neither a string, nor an object nor having a method__toString()
. TheContent-Length
is also set by theZend_Http_Client
in method_prepareBody
strlen($body)
of course delivers an integer, so the Exception will be thrownThe text was updated successfully, but these errors were encountered: