I would like to sent request to our clients server, but they require to send XML as application/xml
I was trying to use setEnc() method but I've got error on unsupported content type, so then I've tried to se setRawData() as they suggested:
self::getHttpClient()->setRawData($XML, 'application/xml');
$this->restPost($this->getPath());
But the way ZF is implemented I'm loosing content-length information (resetParameters part)
final private function _prepareRest($path)
{
........
self::getHttpClient()->resetParameters()->setUri($this->_uri);
}
Any solution?