tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
604 stars 102 forks source link

Update spdycat --help output for --header #131

Closed acdha closed 9 years ago

acdha commented 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 --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:

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.

tatsuhiro-t commented 9 years ago

Thank you! Merged now.