bind9/bin/tests/system/doth
Artem Boldariev f6ef74b196 Fix doth test when curl without HTTP/2 support is unavailable
This commit makes the 'doth' system test skip HTTP headers check when
curl version is new enough but was compiled without HTTP/2 support.

This should fix the 'doth' system test for macOS systems using
macports.
2021-11-25 10:51:12 +02:00
..
ns1 Extend the doth system test with IPv6 support [GL #2861] 2021-08-30 10:21:59 +03:00
ns2 DH-parameters loading support 2021-10-01 15:50:43 +03:00
clean.sh add a max-age test to doth system test 2021-11-05 14:14:59 +02:00
example.axfr.good Parse and print HTTPS and SVCB records 2021-08-18 13:49:48 +10:00
README.curl add a max-age test to doth system test 2021-11-05 14:14:59 +02:00
setup.sh Fix BIND to serve large HTTP responses 2021-06-14 11:37:17 +03:00
stress_http_quota.py Increase the number of file descriptors for stress_http_quota.py 2021-10-20 19:41:25 +00:00
tests.sh Fix doth test when curl without HTTP/2 support is unavailable 2021-11-25 10:51:12 +02:00

DoH query values that can be passed on the command line for testing
with curl can be obtained by encoding binary DNS messages into
base64url, with trailing '='s removed.

For example:

$ perl bin/tests/system/fromhex.pl << EOF | base64url
    # Transaction ID
    0001
    # Standard query
    0000
    # Questions: 1, Additional: 0
    0001 0000 0000 0000
    # QNAME: example
    07 6578616d706c65 00
    # Type: SOA
    0006
    Class: IN
    0001
EOF

This produces the string "AAEAAAABAAAAAAAAB2V4YW1wbGUAAAbFrMonAAE=". With
the trailing '=' removed, this can then be passed to curl:

curl "https://<server>/dns-query?dns=AAEAAAABAAAAAAAAB2V4YW1wbGUAAAbFrMonAAE"