Skip to content

Instantly share code, notes, and snippets.

@dbgrandi
Forked from peterc/httpdump
Created April 4, 2009 01:27
Show Gist options
  • Save dbgrandi/90074 to your computer and use it in GitHub Desktop.
Save dbgrandi/90074 to your computer and use it in GitHub Desktop.
#
# Forked from http://gist.github.com/90062
#
# Drop this into ~/.bash_profile:
# Usage: httpdump <interface>
# Example: httpdump en0
#
function httpdump() { sudo tcpdump -i $1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*|POST \/.*";}
# All the above tested only on OS X.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment