metalink download doesn't follow 302/301 redirects
Normal download:
$ wget2 http://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe
[0] Downloading 'http://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe' ...
HTTP response 302 Found [http://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe]
[0] Downloading 'https://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe' ...
Saving 'abiword-setup-2.4.6.exe'
Metalink download:
$ wget2 www.metalinker.org/samples/abiword-setup-2.4.6.exe.metalink
[0] Downloading 'www.metalinker.org/samples/abiword-setup-2.4.6.exe.metalink' ...
HTTP response 200 OK [www.metalinker.org/samples/abiword-setup-2.4.6.exe.metalink]
downloading part 1/21 (0-262143) abiword-setup-2.4.6.exe from www.abisource.com
HTTP response 302 Found [http://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe]
part 1 download error 302
part 1 failed
downloading part 1/21 (0-262143) abiword-setup-2.4.6.exe from www.abisource.com
HTTP response 302 Found [http://www.abisource.com/downloads/abiword/2.4.6/Windows/abiword-setup-2.4.6.exe]
part 1 download error 302
part 1 failed
...
relevant code: (wget.c/process_reponse_header())
if (resp->code == 302 && resp->links && resp->digests)
return 0; // 302 with Metalink information
Edited by Avinash Sonawane