httpclient
httpclient copied to clipboard
I want to redirect a url by using HTTPClient, like rails provide redirect_to methods to redirect
Hi I just wanted to redirect the URL by using Httpclient but unable to do this can anyone please suggest? now I am using redirect_uri_callback=(redirect_uri_callback) ⇒ Object [http://www.rubydoc.info/gems/httpclient/HTTPClient:redirect_uri_callback=] but its not working.
below is my current code without httpclient, But I want to use HttpCient to redirect to this url, My main amin is to just open this url like redirect_to method.
@oauth = Koala::Facebook::OAuth.new(Figaro.env.fb_app_id,Figaro.env.fb_secret_token,Figaro.env.fb_callback_url)
oauth_code_url = @oauth.url_for_oauth_code
redirect_to oauth_code_url