# POST data not coming through

**URL:** <https://www.ruby-forum.com/t/post-data-not-coming-through/86898>\
**Category:** Rails\
**Created:** [February 26, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/post-data-not-coming-through/86898 "2007-02-26T19:31:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Corless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Joey\_Corless](https://www.ruby-forum.com/u/Joey_Corless)\
**Post date:** [February 26, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/post-data-not-coming-through/86898/1 "2007-02-26T19:31:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joey\_Corless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Joey\_Corless](https://www.ruby-forum.com/u/Joey_Corless)\
**Post date:** [February 26, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/post-data-not-coming-through/86898/2 "2007-02-26T19:40:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joey\_Corless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Joey\_Corless](https://www.ruby-forum.com/u/Joey_Corless)\
**Post date:** [February 28, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/post-data-not-coming-through/86898/3 "2007-02-28T12:33:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joey\_Corless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Joey\_Corless](https://www.ruby-forum.com/u/Joey_Corless)\
**Post date:** [February 28, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/post-data-not-coming-through/86898/4 "2007-02-28T17:03:47Z")

</div>

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… 🙂

/Rick
