OK. Thanks a lot,
Ray
Mauro Tortonesi wrote:
Rares Vernica ha scritto:
Hi,
Is is possible for wget to read from the HTTP Headers the name of the
file in which to write the output?
For example:
> wget -d http://something.com/A
...
---response begin---
HTTP/1.0 200 OK
...
Content-Type: something/something; name="B"
Content-disposition: attachment; filename="B"
...
---response end---
200 OK
It will save the downloaded content into file A. I would prefer that
the content is saved in file B as specified in "Content-Type" or
"Content-disposition".
the current version version of wget has Content-disposition support.
you might want to try it:
http://www.gnu.org/software/wget/wgetdev.html#development