sending a post request from a controller

2011-06-29 Thread David Susco
What's the cleanest way to do this? With Net::HTTP? I have a form
that's sent to a controller and validated. If its valid I'd like to
send the user on (along with the info they've entered) to an external
site to process payment.

Thanks,
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: sending a post request from a controller

2011-06-29 Thread Steve Klabnik
If you're sending them along, isn't that a redirect, not a POST?
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: sending a post request from a controller

2011-06-29 Thread David Susco
Can I send POST data along with a redirect?

Dave

On Wed, Jun 29, 2011 at 3:44 PM, Steve Klabnik st...@steveklabnik.com wrote:
 If you're sending them along, isn't that a redirect, not a POST?
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list




-- 
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: sending a post request from a controller

2011-06-29 Thread Steve Klabnik
No, redirects are an HTTP response, they're not a new request.

Can you give a more concrete example? Your explanation sounds like you're
trying to do two different things, and I'm not sure which you mean.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list