Closed acdha closed 9 years ago
Based on the spdycat --help output I expected to be able to override the Host header in testing by doing something like this:
spdycat --help
spdycat --header="Host: example.org" https://IP_ADDRESS/resource
After running with --verbose I realized that the host header is considered a hard-coded header like the method and must be overridden like this:
--verbose
spdycat --header=":host: example.org" https://IP_ADDRESS/resource
There's still an argument that --header should always override actual HTTP headers but I think a doc change should be enough to make it easy to learn how the tool works.
--header
Thank you! Merged now.
Based on the
spdycat --help
output I expected to be able to override the Host header in testing by doing something like this:After running with
--verbose
I realized that the host header is considered a hard-coded header like the method and must be overridden like this:There's still an argument that
--header
should always override actual HTTP headers but I think a doc change should be enough to make it easy to learn how the tool works.