-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mauro Tortonesi wrote: > anyway, to change wget's logic as you request, i just commited this patch > into the b20323 branch:
<snip> Thanks for that. >> Also, I'm not understanding why we send HEAD, ever, if we specify -O. >> Are the semantics of -O going to change, then, and we'll do timestamping >> on the output file, rather than treat it as if it were a redirection? > > actually, we don't. the 2nd table was wrong. i did a "cut & paste" from the > first table but forgot to change the values in the 3rd column. i sincerely > apologize. this is the correct version of the table: <snip> > -O | --no-content-disposition | Preliminary HEAD | Preliminary HEAD > | | request in 1.11 | request in 1.10.2 > ------------------------------------------------------------------------ > no | no | no | no > no | yes | no | N/A > yes | no | no | no > yes | yes | no | N/A Just to double-check: is row one correct? That is, if content-disposition is turned on, and we're not directing output, we still don't send HEAD? How does this work with -R, -A, etc? Note to lurkers: Mauro and I had previously discussed this, but the plan is that the decision table for sending HEAD in 1.11 is a "temporary measure" only, until we have time to make more final decisions as to when it should be done, and to make other code adjustments as necessary to support them. The more permanent decision-making process will be put into place for wget 1.12, at which time I expect to also make content-disposition the default again, as originally planned. This may come at the cost of not bothering to issue HEAD for the sake of catching content-disposition alone; the reasoning behind this is that it requires issuing a HEAD followed by a GET for the vast majority of resources in a large number of circumstances, while (I expect) the actual number of times that Content-Disposition is encountered is comparatively rare, and in many cases, will not turn up in the HEAD response anyway (these are unverified assumptions on my part, but they seem likely to be true, to me at any rate). This would probably mean rudely terminating our connection while receiving the response to our GET, if we encounter a Content-Disposition header that we decide we don't want after all. And, I definitely want to strive for as simple a model as possible for 1.12 HEAD decision tables. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGy0nq7M8hyUobTrERCOcCAJ4l+z4mzgq7CXtGAGsLAAittnmimQCggcxZ MkYMJTK2cCJw1SlwR4LqGeg= =y38v -----END PGP SIGNATURE-----
