Slip Ahead Logging

It's not your fault at all.

wget に a.zip?foo=bar を a.zip として保存させるオプション

http://superuser.com/questions/61025/how-can-i-make-wget-rename-downloaded-files-to-not-include-the-query-string より。

wget でクエリパラメータつき URL をダウンロードするときには

wget "a.zip?foo=bar"

などとするが、こうすると a.zip?foo=bar というファイルができてしまう。

このときクエリパラメータを取り除いた a.zip というファイルをつくりたければ --content-disposition オプションを加えて

wget --content-disposition "a.zip?foo=bar"

とする。便利だ。