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

Deal with redirect on download... #23

Open
diegozea opened this issue Feb 8, 2016 · 2 comments
Open

Deal with redirect on download... #23

diegozea opened this issue Feb 8, 2016 · 2 comments

Comments

@diegozea
Copy link
Owner

diegozea commented Feb 8, 2016

Maybe using LibCurl.jl and setting CURLOPT_FOLLOWLOCATION to false...

Or maybe copy download from base but using --max-redirect 0 for wget and curl without -L.

@diegozea diegozea modified the milestone: MIToS 1.x Mar 18, 2016
@diegozea diegozea modified the milestones: MIToS 2.0, MIToS 1.x May 18, 2016
@diegozea
Copy link
Owner Author

Add a tester function and use Julia 0.5's retry for download.

@diegozea diegozea modified the milestones: MIToS 2.0, MIToS 1.1 Jul 7, 2016
@diegozea diegozea removed this from the MIToS 2.0 milestone Oct 16, 2017
@diegozea
Copy link
Owner Author

diegozea commented Oct 16, 2017

This is solved for downloadpdb, downloadpdbheader and downloadpfam because they calls the new function download_file. download_file calls Requests.get_streaming. Therefore, It's possible to use the keyword arguments allow_redirects and max_redirects.
However, this is not solved for downloadsifts because Requests doesn't support FTP: JuliaWeb/Requests.jl#89

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

No branches or pull requests

1 participant