If anyone have the same problem in the future (download big files), here is my solution: <https://gist.github.com/carabalonepaulo/9268a44865daf6abf58bf019ddb1c109>
It's a simple and single purpose script to download files (no proxy or redirect support).