chris@imogen ~ $ wget -S http://laby.toybox.de/download2.php?fileid=15 --11:56:49-- http://laby.toybox.de/download2.php?fileid=15 => `download2.php?fileid=15' Resolving laby.toybox.de... 212.227.43.232 Connecting to laby.toybox.de|212.227.43.232|:80... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Date: Tue, 23 Aug 2005 23:53:03 GMT Content-Length: 4882608 Content-Type: application/x-tgz Expires: Tue, 23 Aug 2005 23:53:03 GMT Server: Apache/1.3.33 (Unix) Content-disposition: filename=laby_1.0.1.tar.gz Pragma: no-cache X-Powered-By: PHP/4.3.10 Via: 1.1 nc1 (NetCache NetApp/5.6.2) X-Cache: MISS from rafferty.csnet Connection: keep-alive Length: 4,882,608 (4.7M) [application/x-tgz] 100%[=======================================================>] 4,882,608 29.78K/s ETA 00:00 11:59:35 (28.80 KB/s) - `download2.php?fileid=15' saved [4882608/4882608] Reproducible: Always Steps to Reproduce: 1.wget -S http://laby.toybox.de/download2.php?fileid=15 2. 3. Actual Results: the file was saved using the name 'download2.php?fileid=15' Expected Results: Saved the file using the name taken from the header line Content-disposition: filename=laby_1.0.1.tar.gz chris@imogen ~ $ wget --version GNU Wget 1.10
Well, yeah - this is annoying but needs to be fixed upstream. It's on the wishlist for 2.0 (see http://wget.sunsite.dk/development.shtml).
see wishlist.