Hello I have a rest interface based on Zend_Rest_Controller and another zend application (10.6) connects to it using Zend_Rest_Client.
All methods work fine and as expected apart from PUT:
When I pass an array as a second argument to Zend_Rest_Client::restPut($path, $data) I get this exception instead of the expected response from my server app.
Message: Cannot handle content type '' automatically. Please use Zend_Http_Client::setRawData to send this kind of content.
#0 /web/b2c_bank/library/Zend/Http/Client.php(957): Zend_Http_Client->_prepareBody()
#1 /web/b2c_bank/library/Zend/Rest/Client.php(159): Zend_Http_Client->request('PUT')
#2 /web/b2c_bank/library/Zend/Rest/Client.php(187): Zend_Rest_Client->_performPost('PUT', Array)
#3 /web/b2c_bank/library/My/Service/Rest/ClientCore.php(48): Zend_Rest_Client->restPut('/api/', Array)
can anyone help my with finding out what might be wrong with it?
p.s. all other REST methods (GET, DELETE, POST) work fine in the same configuration