Mauro Tortonesi <[EMAIL PROTECTED]> writes: > Noèl Köthe wrote: >> Hello, >> a forwarded report from http://bugs.debian.org/366434 >> could this behaviour be added to the doc/manpage? > > i wonder if it makes sense to add generic support for multiple headers > in wget, for instance by extending the --header option like this:
Or by adding a `--append-header' with that functionality. Originally --header always appended, but the problem was that people sometimes wanted to change the headers issued by Wget. The reason I didn't introduce (in fact keep) "append" was that HTTP pretty much disallows duplicate headers. According to HTTP, a duplicate header field is equivalent to a single header header with multiple values joined using the "," separator -- which the bug report mentions.