bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] Header line removal behavior


From: Gregory R Fellow
Subject: [Bug-wget] Header line removal behavior
Date: Sun, 30 Sep 2018 13:49:37 -0400
User-agent: Roundcube Webmail/1.2.0

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

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

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=).

Thanks in advance for your help.

Greg




reply via email to

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