On Tue, Aug 23, 2005 at 07:33:52PM +0200, Robert Himmelmann wrote:
> 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.

no,
the header is there:

$ wget -S http://laby.toybox.de/download2.php?fileid=15
--01:42:23--  http://laby.toybox.de/download2.php?fileid=15
           => `download2.php?fileid=15.1'
Resolving laby.toybox.de... 212.227.43.232
Connecting to laby.toybox.de[212.227.43.232]:80... connected.
HTTP request sent, awaiting response... 
 1 HTTP/1.1 200 OK
 2 Date: Tue, 23 Aug 2005 23:40:20 GMT
 3 Server: Apache/1.3.33 (Unix)
 4 Content-disposition: filename=laby_1.0.1.tar.gz

> (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.

the problem is rather, that firefox uses the header, and wget does not.
it's a missing feature in wget, that annoys me too.

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   travelling and working in europe             open-steam.org
unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
administrator     (caudium|gotpike).org                          is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/

Reply via email to