Re: [Rails] [help] - HTTP POST redirect

2015-07-14 Thread Sadaf Noor
It did not redirect because it was not suppose to! You asked it to respond on a send a post request so it did. Now if you want to redirect then you may need to use redirect_to method. 2015-07-14 9:55 GMT+06:00 Vikas Saroha :

Re: [Rails] [help] - HTTP POST redirect

2015-07-14 Thread Hassan Schroeder
On Mon, Jul 13, 2015 at 8:55 PM, Vikas Saroha wrote: > I am looking for some help on making a POST request from the controller to > an external server and follow the redirect. > > I am using - > > response = HTTParty.post(external_uri, post_params) > > but this does not redirect. > > Is there an

[Rails] [help] - HTTP POST redirect

2015-07-13 Thread Vikas Saroha
Hello friends, I am looking for some help on making a POST request from the controller to an external server and follow the redirect. I am using - response = HTTParty.post(external_uri, post_params) but this does not redirect. Is there an easy way this could be done. thanks -- You receive