I'm trying to download using wget a tar.gz. The file is redirected based on the url parameters, so all downloads are redirected automatically.
for example:
wget http://git.cross-lfs.org/?p=bootscripts-embedded.git;a=snapshot;h=HEAD;sf=tgz
// returns:
index.html?p=bootscripts-embedded.git
If I try to rename this to something.tar.gz
and untar it, it's an invalid file.
I've tried various options such as
--content-disposition
--max-redirect=10
--recursive
--level=10
with no luck.
how can I download this file without needing something like curl
?
I'm using wget version 1.12