Re: sending a post request from a controller
Jenna Fox <a <at> creativepony.com>
2011-06-30 00:34:12 GMT
To illuminate the difference:
User goes to website, webserver asks camping "What should I tell this guy?"
camping goes to other website using Net::HTTP, talks to other website a bit, then hangs up and goes back to
the web server who asked that question and says...?
If you want the user to send a post request to another page, that's a bit tricky. Probably the best way to do it
is to send them back a <form> with some <input type=hidden name=thing value=blah> type elements in it,
then a little <script> which says:
<script> document.forms.submit(); </script>
at the end of the page. You should probably also include a submit button in the form for people with
On 30/06/2011, at 4:46 AM, David Susco wrote:
> 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.
> Camping-list mailing list