On Mon, Jul 13, 2015 at 8:55 PM, Vikas Saroha <[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 Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDf%2B1a5neXdgk37Q6%3Dp%2B6Kz_vDOqP6M_OxykSxgv3iqqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to