protected function putRequest($method, $uri, $params, $body)
    {
        $this->checkBody($body, $method);

        // put requests requires content-length header
        $this->setHttpHeader('Content-Length: ' . strlen($body));

        return $this->execute($method, $uri, $params, $body);
    }
protected function putRequest($method, $uri, $params, $body)
    {
        $this->checkBody($body, $method);

        // put requests requires content-length header
        $this->setHttpHeader('Content-Length: ' . strlen($body));

        return $this->execute($method, $uri, $params, $body);
    }
protected function putRequest ( $ method , $ uri , $ params , $ body ) { $ this -> checkBody ( $ body , $ method ) ; // put requests requires content-length header $ this -> setHttpHeader ( 'Content-Length: ' . strlen ( $ body ) ) ; return $ this -> execute ( $ method , $ uri , $ params , $ body ) ; }
put request implementation

@param string $method the request method
@param string $uri    the uri
@param mixed  $params optional query string parameters
@param string $body   body/post parameters

@return string
@throws \Puzzle\Exceptions\InvalidRequestException
put request implementation