-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear on how to follow redirects when wrapping HTTPoison.Base #59
Comments
Oh hey! Yeah we should probably support a direct option instead of passing this through the hackney keyword. Here's an example on how to do it: https://github.com/edgurgel/httpoison/blob/master/test/httpoison_test.exs#L67-L75 |
Can't quite tell how to get the location value back after the redirect. Is it possible to access the hackney.location value from the response object returned after it get request has occurred with hackney value of [ follow_redirect: true ] ? |
Hi @fairbairn, I think what you are looking for is being discussed here: #90 (comment) |
here's a reference to following redirects in tests: httpoison/test/httpoison_test.exs Lines 89 to 103 in 3481d56
the previous link by @edgurgel uses |
I've been banging my head on this for a while, is it possible?
I'll make a PR with some docs on how to do it in the README once I know how, as I'm sure other people are wondering the same.
Thanks!
The text was updated successfully, but these errors were encountered: