Open AndrewSav opened 7 years ago
lftp does not try to retrieve original URL when downloading of redirected URL breaks. The redirected URL is tried again instead. I don't know if it's feasible to change, in current architecture the original URLs are forgotten.
I'll leave it with you then. It's more and more often nowadays to use cloud based blob storage which is protected by time based tokens. Not being able to use lftp to retrieve those is a bit of shame.
I'd also like to point out, that some redirects (like 307) should not be cached in principle as they are by design can give a different URL each time. If lftp caches those too (and not just 301) I would qualify this as a bug.
But of course whether to make improvements here or not is up to you.
I'll fix the problem soon.
Thank you, very much appreciated.
Can you please take a look at #410?
@lavv17 Is there a binary I can test it on? I'm not familiar with the code base enough to review the code changes.
When I do
it starts downloading, but on a slow connection after awhile it errors out:
My guess is that
vagrantcloud.com
issues redirect to aws every time one does the GET request, and every time the token is different. This is time limited. lftp might cache the re-direct and instead of re-issuing every time, uses the cached value that is now expired.Thoughts?