tcpdump web traffic

published on 2011-07-12 in computing

Want to tcpdump your web traffic for debugging? Here's the formula I've been using lately:

tcpdump -s 1514 -Ai en0 'tcp port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420'

Tags: network sysadmin tcpdump