On Sat, 2 Apr 2011 16:50:53 -0400, Jonathan Rosenberg wrote:
My question was sloppy. I have a Grails app. If I use POST it sees data.
If I use PUT in same situation data does not show up in Grails App.

Spying shows me data is sent.  I'm guessing tomcat handles put data
differently than post data.
It might have to do something with https://issues.apache.org/bugzilla/show_bug.cgi?id=48692
which was applied in tomcat 7.0.6.

If you want automatic parameter parsing for PUT requests, you should enable "parseBodyMethods" in your http or ajp connector. This is described on http://tomcat.apache.org/tomcat-7.0-doc/config/http.html.

hth
 Felix

On Apr 2, 2011 4:44 PM, "Konstantin Kolinko" <knst.koli...@gmail.com>
wrote:
2011/4/3 Jonathan Rosenberg <shmol...@gmail.com>:
I've been experimenting with a REST service using Grails on Tomcat. Some experimentation & searching online leads to believe that Tomcat does not
normally pass PUT data through to app.

Is this correct?  I am using v7.

The manager webapp (ManagerServlet) uses PUT requests. Thus it must be
working.

The question is what you are doing.

Best regards,
Konstantin Kolinko


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to