Rails how to follow redirect in HTTParty GET request -


i using httparty send request , trying follow redirect:

get 'https://accounts.google.com/o/oauth2/auth' 

how can follow redirect using httparty?

sorry if have been asked before, not find answer anywhere.

thanks

probably it's not needed now, need.

from documentation, there special option automatically redirects

follow_redirects(value = true) ⇒ object

proceed location header when http response dictates redirect. redirects followed default.

so can use options that:

httparty.get('http://google.com', follow_redirects: true) 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -