4

I use ngrep a lot to inspect HTTP headers to see what's going on. I use the -q flag for quiet output, but I really don't want to see the payloads, only the headers.

Is there a way to do this? My current command is:

ngrep 'Content-Length:' port 80 -t  -W byline -q
sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
PeterB
  • 619
  • 1
  • 8
  • 13

1 Answers1

4

Have you tried setting -S to a small number?

-S limitlen
  Set the upper limit on the size of packets that ngrep will look at. Useful for 
  looking at only the first N bytes of packets without changing the BPF snaplen.
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151