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
Post a Comment