On Tue, 2005-08-23 at 19:33 +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. (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.

man wget
...
-O file
--output-document=file
    The documents will not be written to the appropriate files, but all
    will be concatenated together and written to file.  If file already
    exists, it will be overwritten.  If the file is -, the documents
    will be written to standard output.  Including this option automat‐
    ically sets the number of tries to 1. Note that when --output-docu‐
    ment is specified, --convert-links is ignored.

If you're only downloading one file, it's effectively a rename.

Roy.

Reply via email to