/** * Prepare the request body (for POST and PUT requests) * * @return string * @throws Zend\Http\Client\Exception */ protected function _prepareBody() { if ($this->_streamingRequest) { $this->setHeaders(self::CONTENT_LENGTH, $this->raw_post_data->getTotalSize()); return $this->raw_post_data; } else { return parent::_prepareBody(); } }
/** * Prepare the request body (for POST and PUT requests) * * @return string * @throws Zend\Http\Client\Exception */ protected function _prepareBody() { if ($this->_streamingRequest) { $this->setHeaders(array('Content-Length' => $this->raw_post_data->getTotalSize())); return $this->raw_post_data; } else { return parent::_prepareBody(); } }