]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: h2: support hex-encoded data sequences in mkhdr
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Jan 2024 16:53:50 +0000 (17:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Jan 2024 17:59:59 +0000 (18:59 +0100)
commitf3a19e70e8e1aeb25d3efe9392ce620569de4e8f
tree80f90628ad4e92d6bfb69be366aae11a9d568ede
parent5bf19f8b5789476ce0cbee1ef587af42e5ce4003
DEV: h2: support hex-encoded data sequences in mkhdr

For HPACK-encoded headers (particularly with huffman encoding), it's
really necessary to support hex sequences as they appear in RFC7541
examples, so let's support hex digit pairs with -R.

Now it's possible to do this to send GET https://www.example.com/ :

    (dev/h2/mkhdr.sh -t p; dev/h2/mkhdr.sh -t s;
     dev/h2/mkhdr.sh -t h -i 1 -f es,eh \
     -R '8286 8441 0f77 7777 2e65 7861 6d70 6c65 2e63 6f6d ') | nc 0 8080
dev/h2/mkhdr.sh