Cheat Sheet - cURL

See which TLS version is in use

# look for something like 
# * SSL connection using TLSv1.3 ... 

curl -vI https://foobar

Test if a site supports HTTP/2

curl -I --http2 https://foobar

Show response header & body

curl --include https://somehost

Show only response header

curl --head https://somehost
curl -I https://somehost

Add request headers

curl --header "X-MyHeader: 123" --header "X-AnotherHeader: foo" https://somehost