Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
The "Header;" syntax for empty headers does not disable automatically generated headers #2357
I did this
I want to disable an automatically generated header (e.g. "Host") and send an empty header instead:
I expected the following
I expected that curl sends a "Host" header with an empty value. Instead, it sends two "Host" headers, the default one ("Host: www.example.com") and the custom one ("Host:").
As a workaround, it's possible to send just the custom one with this command: