Recently I found a interesting site with many download and wanted to save them all, because I was interested in older downloads.
Links where all redirected by file handling tool:

http://dl.somesite.com/download/file.php?id=147

If you use a simple bash loop to fetch all the files, files are named: file.php?id=xxx

So I found this interesting wget option and solved the problem this way:

mkdir dl
cd dl
for i in $(seq 1 2000)
do
   wget --content-disposition http://dl.somesite.com/download/file.php?id=$i
done

This does a pretty nice job :-)