-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jochen Roderburg wrote:
> Zitat von Mauro Tortonesi <[EMAIL PROTECTED]>:
> 
>> here is a table resuming the behaviour of current wget version (soon to be
>> 1.11) and wget 1.10.2 regarding HTTP HEAD requests. i hope the table will be
>> useful to determine whether the currently implemented logic is correct.
>>
> 
> Sorry, this huge decision table looks far to complicate for me  ;-)

I think that's mostly that the table displays not only the logic wget
logic uses, but what test is used for what Content-Disposition presence
situation. If you remove the Content-Disposition presence and test name
columns, it becomes a bit easier to parse (BTW, Visual Block mode in Vim
rocks):

  -N | --no-content-disposition | Preliminary HEAD | Preliminary HEAD
     |                          | request in 1.11  | request in 1.10.2
- -----------------------------------------------------------------------
  no |                       no |              yes |                no
  no |                      yes |               no |               N/A
 yes |                       no |              yes |                no
 yes |                      yes |               no |               N/A


  -O | --no-content-disposition | Preliminary HEAD | Preliminary HEAD
     |                          | request in 1.11  | request in 1.10.2
- -----------------------------------------------------------------------
  no |                       no |              yes |                no
  no |                      yes |               no |               N/A
 yes |                       no |              yes |                no
 yes |                      yes |               no |               N/A


 --spider |  -r | --no-cont.disp | Preliminary HEAD | Preliminary HEAD
          |     |                | request in 1.11  | request in 1.10.2
- ----------|------------------------------------------------------
      yes |  no |             no |              yes |               yes
      yes |  no |            yes |              yes |               N/A
      yes | yes |             no |              yes |              N/A*
      yes | yes |            yes |              yes |              N/A*

*) recursive spider mode is broken in 1.10.2

> 1) no -O, contentdisposition=no, timestamping=yes, local file existing
> 2) no -O, contentdisposition=yes, timestamping=yes

Well, the additional treatment for the --spider option seems appropriate
as well.

However, it seems right to me, that if the local file exists, and
timestamping is on, then (since we don't use If-Modified-Since), a HEAD
request ought to be sent. This would mean that row 4 of the first table
above would have a conditional truth value.

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?

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

iD8DBQFGx0ON7M8hyUobTrERCJSwAJ9UVm4CeBoNsYPVhLrOIklDFJyLngCeK3V6
DVjda089OmUkruMQa+yvVBU=
=15hw
-----END PGP SIGNATURE-----

Reply via email to