[Slackbuilds-users] Content-Disposition header
andrew.david.strong at gmail.com
Sat Mar 21 23:44:41 UTC 2015
I am currently preparing an update to libfdk-aac and I have
encountered a problem with the use of a Content-Disposition header at
The source download link is:
and if a stock slackware wget is used the source name is
v0.1.3.tar.gz. However if a browser is used the Content-Disposition
header produces a downloaded source of fdk-aac-0.1.4.tar.gz.
Some detective work shows where the file actually resides:
andrew at ilium~$ curl --silent --head https://github.com/mstorsjo/fdk-aac/archive/v0.1.4.tar.gz | grep Location
and the final step shows the renaming:
andrew at ilium~$ curl --silent --head https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v0.1.4 | grep "Content-Disposition"
Content-Disposition: attachment; filename=fdk-aac-0.1.4.tar.gz
Now there is an option for wget which I personally use:
but this is marked as experimental and I accept that this cannot be
considered standard usage. But I remain a little puzzled as to the
best naming convention for this and probably other slackbuilds scripts
where the Browser download and standard wget download will generate
Thanks for any input,
You think that's air you're breathing now?
More information about the SlackBuilds-users