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

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to