# "Only get, put, and delete requests are allowed" on an XML request... why?

**URL:** <https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed-on-an-xml-request-why/175687>\
**Category:** Rails\
**Created:** [September 17, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed-on-an-xml-request-why/175687 "2009-09-17T19:24:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de0a6/32.png) [@marcos](https://www.ruby-forum.com/u/marcos)\
**Post date:** [September 17, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed-on-an-xml-request-why/175687/1 "2009-09-17T19:24:26Z")

</div>

My app on rails 2.3.2 has a standard scaffold for a resource “thing”  
I try to edit a “thing” like this:

curl -d ‘pallone’ ‘[http://0.0.0.0:3000/](http://0.0.0.0:3000/)  
things/1’ -d ‘\_method=put’ -H ‘Content-type: application/xml’

and I get the error “Only get, put, and delete requests are allowed”  
why? It’s driving me crazy…

(My app is accessed by a flex3 frontend that speaks XML, and can only  
send get and post requests. It work as expected with html forms, but I  
have to use XML !)
