I have a package that needs to download a library from sourceforge. On windows, the download command does not follow redirects. I found that the microsoft function that is used by Julia is not able to follow redirects. Is there any other ways to download from sourceforge on windows?
Here’s the code that works on Linux, but not on windows:
I think it’s generally agreed that we need to improve the download implementation on Windows, but nobody has done the work yet. See this link (and linked URLs): https://github.com/JuliaPackaging/WinRPM.jl/issues/40
Note that it’s a lot less likely for a curl executable to be installed and on the path for users on Windows, so this will not be very reliable. You can try BinDeps.download_cmd which uses powershell, which is always installed on Windows.