Interview Prep/Linux/Networking, SSH & Scheduling

Which curl flags are most useful for debugging?

BeginnerConceptNetworking, SSH & Scheduling
Answer
curl -v https://api.example.com/health          # headers, TLS, connection
curl -sS -o /dev/null -w '%{http_code} %{time_total}\n' https://example.com
curl -I https://example.com                      # HEAD only
curl --resolve api.example.com:443:10.0.2.15 https://api.example.com/   # bypass DNS
curl -k https://self-signed.local                # skip TLS verify (debug only)
curl --connect-timeout 3 -m 10 http://svc:8080
All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling