[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Header line removal behavior

From: Tim Rühsen
Subject: Re: [Bug-wget] Header line removal behavior
Date: Mon, 1 Oct 2018 11:38:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 9/30/18 7:49 PM, Gregory R Fellow wrote:
> Hi. Is it the intended behavior for wget to allow sending custom header
> lines with no value?
> The following clears previous user-defined headers as described in the
> documentation:
> --header=
> The following both send a header with no value:
> --header="Accept-Encoding:"
> --header="Accept-Encoding: "

Well, --header is kind of an "expert" option. Possible use is to test
web servers. A lenient handling is IMO better here than a too strict one.

> This gets an "Invalid header" error from wget:
> --header="Accept-Encoding"

One of the few checks applied :-)

> I noticed this behavior while trying to disable some of wget's
> automatically generated headers (which apparently isn't possible except
> for User-Agent via --user-agent=).

If you need that, please open an issue at
https://savannah.gnu.org/bugs/?func=additem&group=wget with your
detailed ideas.

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]