Zend_Controller_Plugin_PutHandler
Zend_Controller_Plugin_PutHandler provides a drop-in
plugin for marshalling PUT request bodies into request parameters, just
like POST request bodies. It will inspect the request and, if
PUT, will use parse_str to parse the raw PUT body
into an array of params which is then set on the request. E.g.,
To receive the 'title' and 'body' params as regular request params,
register the plugin:
registerPlugin(new Zend_Controller_Plugin_PutHandler());
]]>
Then you can access the PUT body params by name from the request inside
your controller:
getRequest()->getParam('title'); // $title = "Hello"
$body = $this->getRequest()->getParam('body'); // $body = "World"
}
...
]]>