Hi, When I create a controller like this: module Bla::Controllers class Workflow < R ''/workflow/([^\/]+)'' def post(name) @@log.info input.inspect end end end And POST some data from the command line: curl -i -X POST -H ''Content-Type: application/xml'' -d ''<doc><test attr="423"/></doc>'' ''http://localhost/workflow/test'' I see this in my log: {"<doc><test attr"=>"\"423\"/></doc>"} It seems that it builds a hash from my POSTED data. How can I get the data as it was submitted? TIA, Erik.
On Jul 31, 2007, at 3:18, Erik Terpstra wrote:> > How can I get the data as it was submitted?Currently there is no way to get the raw post data. The version in trunk has a change that allows you to @in.read the post body. Maybe you can backport the feature to your installation? Manfred
Thanks Manfred, I will have a look at that. Erik. Manfred Stienstra wrote:> On Jul 31, 2007, at 3:18, Erik Terpstra wrote: > >> How can I get the data as it was submitted? >> > > Currently there is no way to get the raw post data. The version in > trunk has a change that allows you to @in.read the post body. Maybe > you can backport the feature to your installation? > > Manfred > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > >