# 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.,

    PUT /notes/5.xml HTTP/1.1
    title=Hello&body=World

To receive the 'title' and 'body' params as regular request params, register the plugin:

    $front = Zend_Controller_Front::getInstance();
    $front->registerPlugin(new Zend_Controller_Plugin_PutHandler());

Then you can access the PUT body params by name from the request inside your controller:

    ...
    public function putAction()
    {
        $title = $this->getRequest()->getParam('title'); // $title = "Hello"
        $body = $this->getRequest()->getParam('body'); // $body = "World"
    }
    ...