Search code examples
powershelldownloadcorrupt

wget and curl always result in corrupted file


I'm trying to download a file using wget, so I do:

wget 'url' -o 'path.file-extension'

Everytime the download succeeds, but the file gets corrupted. Also tried downloading using curl, but results in the same corrupted file. How do I fix this? (nothing I found on other posts worked so far)

edit 2: The url I had was suspended and re-opened multiple times, resulted in html download -> -o made it .mp3 -> file got corrupted. Also explains why it sometimes worked.


Solution

  • The url I had was suspended and re-opened multiple times, resulted in html download -> -o made it .mp3 -> file got corrupted. Also explains why it sometimes worked.

    edit: can't accept as answer rn...