Skip to content
curl

Debugging

Trace requests, timing, and transfers.

#debug#trace#timing

Code

curl
# Verbose: headers, TLS handshake, redirects
curl -v https://example.com

# Full trace with hex dump
curl --trace - https://example.com

# Trace only timing, no body
curl -w "DNS:%{time_namelookup} CONNECT:%{time_connect} TOTAL:%{time_total}\n" \
  -o /dev/null -s https://example.com

# Measure download speed and size
curl -o /dev/null -s -w "Size: %{size_download} bytes Speed: %{speed_download} bps\n" \
  https://example.com/bigfile