POST data not coming through

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.

Hi!
I have the same problem, no solution.

I’m using Ajax/XMLHttpRequest calls. I’m using Rails 1.2.2. prototype.js
(1.4.0._rc2 or 1.5, doesnt matter) running SCGI with Apache/2.2.4 (Unix)
DAV/2 mod_scgi/1.12. I also have the same rails application (web) under
Apache 1.3, then there are no problems.

I can see in FireBug (JavaScript debug for Firfox) that my Ajax request
is going out with my POST parameter. Also, as you mention the
request.raw_post is blank.

Hope someone knows whats going on and why!

Thanks!
/Rick

Joey Corless wrote:

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.

What Apache version are you using? Have you tried to step down to a
older apache?

/Rick

Joey Corless wrote:

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.

I dont know if you did see my last reply on the web:

What Apache version are you using? Have you tried to step down to a
older apache?

A friend to me has figured out that the POST only includes a header and
no body so if thats true this is probably not a apache related issuse, i
guess. But I still hope… :slight_smile:

/Rick

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs