I'm trying to use curl to send a HTTP request with custom headers (curl http://example.com -H "Foo: bar"
), and I'm finding that when the header arrives, it has been lower-cased, by curl (the above Foo
header is received as foo: bar
)
How to preserve the case of headers in a request?