Trace a web request with curl, dig and DevTools

10 steps · about 3 h 35 min · Beginner

  1. How the web works - Learn web development - MDN Web Docs (guide, MDN Web Docs, 15 min)

    It gives you the big picture of clients, servers, DNS, TCP/IP and HTTP, so each later tool output has a place to fit.

  2. Overview of HTTP - MDN Web Docs (doc, MDN Web Docs, 20 min)

    It teaches the request and response structure (methods, headers, status codes) that curl and DevTools both display.

  3. DNS and Networking Tools Every Developer Should Know — DevTools Guide (guide, DevTools Guide, 25 min)

    It is where you first run dig, including +short, querying a specific resolver and +trace, to watch name resolution yourself.

  4. HTTP, HTTPS and TLS: Part 9 — Debugging HTTP with curl: DNS spoofing, redirects, timings and tracing (tutorial, bigmike.help, 30 min)

    It shows how to read curl -v output (DNS, TCP, TLS, request and response lines) and follow redirects with -L.

  5. Everything curl [book] (doc, Daniel Stenberg / curl project, 40 min)

    Once you have the basics, the curl author's free book is the authoritative reference for flags, verbose output and HTTP scripting.

  6. Inspect network activity | Chrome DevTools | Chrome for Developers (doc, Chrome for Developers, 20 min)

    It shows how to log, filter and inspect the same request in the browser's Network panel.

  7. Network features reference | Chrome DevTools | Chrome for Developers (reference, Chrome for Developers, 25 min)

    It covers the Initiator column, protocol and the timing breakdown, so you can match DevTools phases to what curl and dig showed.

  8. Available --write-out variables - everything curl (reference, Daniel Stenberg / curl project, 10 min)

    It lists the official timing variables that let curl report DNS, connect and TLS times as numbers.

  9. How to measure request timing with cURL (tutorial, Simplified Guide, 15 min)

    It gives a ready-to-run timing command and explains how the cumulative times show where a request spends its time.

  10. Network Troubleshooting for Developers Before Blaming Your Code (article, CodeItBro, 15 min)

    It ends by tying the tools into one layered checklist (DNS, TCP, HTTP, browser rules) for diagnosing a failing request.