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
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedHow do you use `dig` for DNS troubleshooting?BeginnerWhat are /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf?Intermediate