-
Notifications
You must be signed in to change notification settings - Fork 185
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
Make redirect history available #731
Comments
Did anyone see this? |
I don't really have an answer to why the history is private more than the smaller the API the less headache to maintain ureq. |
I welcome help on this for ureq 3.x.
|
I'm moving from reqwest to ureq to get rid of async. I'd need just the final url, but the full history is of course also a solution. UPDATE: I'm writing a crawler for a search engine and web archive[¹]. I'll just set max_redirects to 0 and handle them in my code, putting the redirect URL back in the crawler queue and incrementing the crawl depth counter of the url. Maybe the full history could be collected by a middleware? |
This is actually already implemented in the latest RC. https://docs.rs/ureq/3.0.0-rc3/ureq/trait.ResponseExt.html#tymethod.get_uri |
Closed by #939 |
I've been getting some strange redirect behaviour and I'd like a way to find out whet is happening. For the URL I'm fetching I've been getting a
TooManyRedirects, message: Some("reached max redirects (5)")
error.I fetched the same URL using the python requests library and I only got 1 redirect so I think there may be a problem. I'm actually in charge of the entire stack and can assure you that there is only 1 redirect in the entire request cycle.
I've managed to get around it by setting the redirect limit to 6 but because I have no visibility of the history I can't find out what is going on.
Is there a reason the history is private?
The text was updated successfully, but these errors were encountered: