-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Goul_duKat wrote:
> blanked some info with xxx
> 
> file used
> http://files.filefront.com/Oulton_ParkBumpFixrar/;6524403;;/fileinfo.html
> 
> is possible to fix this wrong behavior so instead to try to use the url
> to build the filename use the right header voice to make the filename ?
> 
> just see now i got saved a file called "X6" instead of the right one
> "Oulton_ParkBumpFix.rar" who is in :
>  Content-Disposition: attachment; filename="Oulton_ParkBumpFix.rar"
> 
> possible to fix this so when the html header return the filename use it
> and use the url only when not found ? ( is possible to adds some command
> line switch too to change this behavior so ppl can decide what its fit
> for him )

The current trunk version of Wget will do this if you specify -e
contentdisposition=on.

Note that the default behavior shouldn't necessarily be considered
"wrong", since Content-Disposition is not an HTTP header, but a common
extension taken from MIME.

The Content-Disposition code is somewhat experimental, and may not work
perfectly, and also results in sending a lot of extra requests, which is
why it is currently disabled by default. We hope to enable it by default
in Wget 1.12.

- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG11XY7M8hyUobTrERCB2LAJ9H8LX2qUKOXJhc2K7h5c62WFglKwCfUVr9
lU9Lygt2RJg9a6wHuZg4xRw=
=Qoit
-----END PGP SIGNATURE-----

Reply via email to