You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to disable an automatically generated header (e.g. "Host") and send an empty header instead: /curl -v -H 'Host;' 'http://www.example.com'
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: curl -v -H 'Host:' -H 'Host;' 'http://www.example.com'
curl/libcurl version
curl 7.59.0-DEV
operating system
Linux
The text was updated successfully, but these errors were encountered:
I did this
I want to disable an automatically generated header (e.g. "Host") and send an empty header instead:
/curl -v -H 'Host;' 'http://www.example.com'
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:
curl -v -H 'Host:' -H 'Host;' 'http://www.example.com'
curl/libcurl version
curl 7.59.0-DEV
operating system
Linux
The text was updated successfully, but these errors were encountered: