Interview Prep/Networking/Rapid-Fire Commands

Rapid-fire: how do you test an HTTP/2 or HTTP/3 endpoint with curl?

BeginnerProductionRapid-Fire Commands
Answer
curl -sI --http2 https://example.com | head -1
curl -sI --http3 https://example.com | head -1     # needs curl built with HTTP/3
All Networking questions Roadmap: Networking for DevOps

More on Rapid-Fire Commands