Skip to content
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

HTTP Client follow redirection option #1727

Closed
AndreasAakesson opened this issue Mar 27, 2018 · 1 comment
Closed

HTTP Client follow redirection option #1727

AndreasAakesson opened this issue Mar 27, 2018 · 1 comment

Comments

@AndreasAakesson
Copy link
Contributor

Would be nice to have a option to either set on the client, or pass as an option when making a request to follow any redirection (3xx codes).
It's currently possible by nesting callbacks, something like:
if(res->status_code() == 301) client.get(res->header().value("Location"), /*...*/);

@AndreasAakesson
Copy link
Contributor Author

Added with #1935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants