Zitat von Mauro Tortonesi <[EMAIL PROTECTED]>: > On Sun, 08 Jul 2007 16:22:59 +0200 > Jochen Roderburg <[EMAIL PROTECTED]> wrote: > > > I think I remember now the motivation for this "unnecessary" HEAD request. > > It *is* necessary as part of the support for getting the filename from the > > "Content-Disposition" header. To know with which local file to compare you > have > > to get the headers from the server. > > yes, support for Content-Disposition HTTP header was the reason for which i > had to change wget's behaviour to send a HEAD HTTP request before the actual > file retrieval. so, one can't claim that the preliminary HEAD request is > "unnecessary". however, it can (and should in fact be) skipped if -O or > --no-content-disposition are given.
Yes, that is what I also wanted to express: I thought first it was unnecessary but now I understand it is only so in certain more specialized cases. Thank you for more info, slowly I begin to get the "whole picture", and see why my old report was answered by you with a patch which at first glance looked like it solved a different problem ;-) > > So I think the erroneous patch can simply be retracted. I don't know if > there > > was any other additional issue with the "-O" option. In older versions > there > > was the case, that with -O wget still looked at local files of the same > name > > than the remote file, but I think this does not happen anymore because it > > already does no longer allow -O and timestamping together. > > no, as i mentioned above, we should avoid sending HEAD if -O or > --no-content-disposition are given. therefore, we can't simply get rid of the > changes introduced by the buggy patch i submitted, but we need to fix and > keep them. > > anyway, thank you very much for your bugreport. i just fixed the problem with > my buggy patch in my local repository. i will clean up the changes and commit > them tomorrow at most. I'll keep an eye on it. Somehow now I think that is wasn't so bad at all that the first attempt with the patch did not succeed. If it would have done what it should I think now I would have understood even less what it had to do with my case ;-) > > The remaining "real" bug is that the timestamp for the local file is taken > from > > the HEAD request and not from the GET request. Details for that are in the > list > > archive in http://www.mail-archive.com/[email protected]/msg09303.html > > i am working on this issue as well. Fine, this one really concerns me more. It has always been a very important feature for me that wget sets the timestamp on the downloaded files to the timestamp of the server files, and it is really confusing when this doesn't work like expected in some cases. Best regards, J.Roderburg
