HTTP/2 request curl
Force HTTP/2 and check protocol in response
curl --http2 -sI https://example.com | grep -i 'http\|alt-svc'
more curl
all 21 commands →
Set custom DNS resolver
curl --resolve example.com:443:1.2.3.4 https://example.com
Retry on failure
curl --retry 5 --retry-delay 2 --retry-all-errors https://api.example.com/healthz
POST form data
curl -d 'user=alice&pass=secret' -X POST https://auth.example.com/login
Client certificate auth
curl --cert client.crt --key client.key --cacert ca.crt https://secure.example.com
Parallel downloads with xargs
cat urls.txt | xargs -P 5 -I{} curl -sSL -o /dev/null -w '%{url_effective} %{http_code}\n' {}