Tony Lewis wrote: > The --convert-links option changes the website path to a local file > system path. That is, it changes the directory, not the file name.
Thanks I didn't understand it that way. > IMO, your suggestion has merit, but it would require wget to maintain > a list of MIME types and corresponding renaming rules. Well it seems implementing the "Content-Type" header is planned since a long time and there are two items about it in the "TODO" document of the wget distrib. Maintaining a list of MIME types is not an issue as there are already lists around : * "File suffixes and MIME types" at Duke University : http://www.duke.edu/websrv/file-extensions.html * "MIME Types" category at Google : http://www.google.com/Top/Computers/Data_Formats/MIME_Types * ... Just a word about how HTTrack handles MIME types and extensions. It has a powerful "--assume" option that allows users to assign a MIME type to extensions. For example : "All .php files are PNG images". Everything is explained on the "Option panel : MIME Types" page at http://www.httrack.com/html/step9_opt11.html. I think wget could use such an option. JM.