I developed an application using Rails and the WeBrick, and now I’ve
moved it to the production server using apache/fcgid. Now, however,
post data is not being populated in the params hash. Even a simple form
with one hidden field, which works fine as a GET request, does not work
using POST. The problem isn’t with the form, as I’ve posted the data to
a simple php script that just dumps the data, and it came through fine.
I read a post somewhere about a similar problem, but it was only
occuring over HTTPS. In my case, it is occuring over standard HTTP.
I’ve tried using mod_cgi instead of fcgid, and the problem was the same.
In addition, I tried checking request.raw_post and it was blank. I also
tried submitting the form to the same URL but with “?var=val” appended
to it, and params did include “var” => “val”.
Does anyone have any ideas on what might be causing this? Thanks.