Skip to content
s-tech-labs/tools/httptrace

httptrace

Gov0.2.0MIT

Traces the full path of an HTTP request and renders a waterfall diagram in your terminal. Measures DNS resolution, TCP connect time, TLS handshake duration, and HTTP response time per hop. Follows redirects up to a configurable depth. Color-coded output makes it easy to spot where latency lives. Great for debugging slow APIs, CDN issues, and proxy chains.

NetworkingDebuggingHTTPCLI

Features

  • DNS resolution timing with server IP display
  • TCP connect and TLS handshake duration measurement
  • Redirect following with per-hop waterfall
  • Custom headers, methods, and request body support
  • DNS caching: cached results marked on redirect

Flags

LongShortDescription
--version-VShow version and license
--method-XHTTP method (GET, HEAD, POST)
--header-HCustom header (repeatable)
--insecure-kSkip TLS certificate verification
--timeout-tMax seconds per hop (default 10)
--max-hops-mMax redirects to follow (default 5)
--json-jOutput as JSON

Usage

terminal
$ httptrace https://example.com/api
$
$ httptrace --method POST --header 'Authorization: Bearer *** https://api.example.com

Dependencies

stdlib only — net, crypto/tls, net/http, time

Install
$ curl -LO https://labs.stech-sol.com/downloads/httptrace/0.2.0/httptrace_linux_amd64
$ chmod +x httptrace_linux_amd64
$ sudo mv httptrace_linux_amd64 /usr/local/bin/httptrace
About
Language
Go
Versionv0.2.0
LicenseMIT
RepositoryGitHub