[help] - HTTP POST redirect

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.


Yes - see the HTTParty docs :slight_smile:

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.