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
On Mon, Jul 13, 2015 at 8:55 PM, Vikas S. [email protected] 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 easy way this could be done.
Yes - see the HTTParty docs
–
Hassan S. ------------------------ [email protected]
twitter: @hassan
Consulting Availability : Silicon Valley or remote