title: How to get xml post request parameters in Sinatra?
body: <p>I have a very simple Sinatra app which only does log out the params in the action, and then I use curl to send post data in xml format, but sinatra didn't get the xml parsed:</p>
  
  <pre><code>echo '&lt;something&gt;tyrael tong&lt;/something&gt;' | curl -X POST -H 'Content-Type: text/xml' -d @- http://localhost:9528/status/update
  </code></pre>
  
  <p>I searched through google with no solution to this. Am I suppose to parse the xml post data by myself?</p>