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

Thanks a lot,
Ray

Reply via email to