Read the request body. This is useful for web services that need to work with raw requests directly.
Source Code
# File action_controller/request.rb, line 279 def raw_post unless env.include? 'RAW_POST_DATA' env['RAW_POST_DATA'] = body.read(content_length) body.rewind if body.respond_to?(:rewind) end env['RAW_POST_DATA'] end
<code/>and<pre/>for code samples.