Greetings,
wget http://laby.toybox.de/download2.php?fileid=15 does the same. In http there
is some part of the header which specifies the filename of whatever is being
transmitted. They use Apache/1.3.33 with PHP (obviously). I would think that
they forgot this field when they wrote the script. (You have to specify it)
Firefox probably uses in cases like this the URL it had before the redirect and
wget the one after. Classify it as a bug in their script and rename the file.
Nick Rout wrote:
If i use firefox to download this file, all is well.
If I use wget it downloads the file, but calls it "download2.php?fileid=15"
the url is:
http://laby.toybox.de/download15/laby_1.0.1.tar.gz
There is some sort of redirect going on there because if you download
http://laby.toybox.de/download15/
you also get the file, with the same error from wget
Here is the output - why does wget the name wrong when firefox is clever
enough to do it right?
[EMAIL PROTECTED] ~/tmp/laby/tmp $ wget
http://laby.toybox.de/download15/laby_1.0.1.tar.gz
--13:47:04-- http://laby.toybox.de/download15/laby_1.0.1.tar.gz
=> `laby_1.0.1.tar.gz'
Resolving laby.toybox.de... 212.227.43.232
Connecting to laby.toybox.de[212.227.43.232]:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://laby.toybox.de/download2.php?fileid=15 [following]
--13:47:05-- http://laby.toybox.de/download2.php?fileid=15
=> `download2.php?fileid=15'
Connecting to laby.toybox.de[212.227.43.232]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,882,608 [application/x-tgz]
Happy Hacking,
Robert Himmelmann