Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the raw unaltered http POST data in Rails?

How can I access the original POST message in a controller and send it back unaltered to its original sender?

like image 354
joscas Avatar asked Jan 13 '13 17:01

joscas


1 Answers

You can use ActionDispatch::Request#raw_post to get the unaltered POST data:

request.raw_post
like image 190
Philip Hallstrom Avatar answered Sep 25 '22 08:09

Philip Hallstrom