httpmon HTTP traffic CLI

See what a command sends and gets back over HTTP.

Put httpmon in front of a command like curl to see its HTTP traffic; keep it in a session to query, diff or replay.

httpmon v4.1.0 · captured output captured
$ httpmon curl -sS https://proxy.golang.org/github.com/hxddh/https-traffic-inspector/@v/list
REQUEST #1 GET https://proxy.golang.org:443/github.com/hxddh/https-traffic-inspector/@v/list

Host: proxy.golang.org · Accept: */* · User-Agent: curl/8.7.1

RESPONSE #1 HTTP/2.0 200 OK (1.144s)

Content-Type: text/plain; charset=UTF-8 · Content-Length: 91

v1.3.0 v1.0.2 v1.0.0 v1.1.1 v1.4.1 …
local HTTPS inspectionoriginal response stream stays with the command

Record, compare and replay

Get started

go install needs Go 1.26+. On Windows, use install.ps1 or a binary from GitHub Releases.

  1. Install (Linux, macOS)

    curl -fsSL https://github.com/hxddh/https-traffic-inspector/releases/latest/download/install.sh | sh
  2. Or install with Go

    go install github.com/hxddh/https-traffic-inspector/v5/cmd/httpmon@latest
  3. Wrap a command and watch its traffic

    httpmon curl https://api.github.com/users/octocat

FAQ

Which commands can it wrap?

Any proxy-aware command, such as curl, aws, Python, Node, Java, git, cargo or Deno.

  • Only that child process gets the proxy address and CA; your system settings stay as they are.
  • Go programs skip the proxy for loopback targets.
  • A JVM already running before httpmon started, such as a Gradle daemon, is not configured.
Does it still check certificates?

Yes. Because httpmon terminates TLS, it verifies each server’s real certificate on the command’s behalf; a failure is a 502 with a tls_verify error. --insecure-upstream turns that off; use it only against hosts you control.

Does it diagnose storage errors?

No. httpmon shows the traffic and leaves the judgment to you. To diagnose S3-compatible storage errors in Pi, the open-source terminal coding agent, use StorageOps, which captures traces through httpmon. Open StorageOps