httpry

specialized HTTP packet sniffer

TLDR

Capture HTTP traffic
$ sudo httpry -i [eth0]
Filter by port
$ sudo httpry -i [eth0] 'port 8080'
Log to file
$ sudo httpry -i [eth0] -o [http.log]
Read from pcap
$ httpry -r [capture.pcap]
Custom output format
$ sudo httpry -i [eth0] -f [method,host,request-uri]

SYNOPSIS

httpry [options] [filter]

DESCRIPTION

httpry is a specialized HTTP packet sniffer. It captures live traffic or reads a pcap file and logs HTTP request and response metadata - method, host, URI, headers - in a compact, customizable line-oriented format instead of full packet dumps.The tool focuses purely on HTTP header parsing rather than general-purpose packet capture, making it lightweight for continuous logging and analysis of web traffic. Output fields are selected with -f, and it can run as a background daemon writing to syslog.

PARAMETERS

FILTER

BPF-style capture filter expression, same syntax as tcpdump.
-i DEVICE
Ethernet interface to listen on. If omitted, httpry polls the system and picks the first interface found.
-r FILE
Read packets from an existing pcap capture file instead of doing a live capture. Does not require root.
-o FILE
Output file for writing parsed packet data.
-f FORMAT
Comma-delimited list of HTTP fields to output (e.g. `method,host,request-uri`).
-m METHODS
Comma-delimited list of request methods to parse (e.g. `GET,POST`).
-n COUNT
Parse this many HTTP packets, then exit. Default is 0 (run forever).
-d
Run as a daemon process; status output goes to syslog. Requires -o.
-b FILE
Write all processed HTTP packets to a binary pcap dump file.
-p
Do not put the interface into promiscuous mode.
-q
Suppress non-critical output (startup banner, statistics, etc).
-u USER
Drop privileges to the given user after opening the capture device.
-h
Display help information.

INSTALL

sudo apt install httpry
sudo dnf install httpry
sudo apk add httpry
brew install httpry

CAVEATS

Live capture requires root (or appropriate capabilities) to open the network interface; reading from a pcap file with -r does not. Only plaintext HTTP is parsed - encrypted HTTPS traffic is invisible to it. Built on libpcap. The project has seen no releases since 2018 and is effectively unmaintained.

HISTORY

httpry was created by Jason Bittel around 2005 as a lightweight, purpose-built alternative to general packet sniffers for logging HTTP traffic. It later moved to GitHub under jbittel/httpry.

SEE ALSO

tcpdump(1), httpflow(1), ngrep(1)

RESOURCES

Source code