Forum Discussion

cxcal_18687's avatar
cxcal_18687
Icon for Nimbostratus rankNimbostratus
Oct 10, 2008

Tcpdump HTTP content option

Is there an parameter with tcpdump to out the http content?

 

 

Have not found this in the documentation.

 

 

Anyone used it feature before?

 

 

Thanks.

 

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Do you want to filter out HTTP traffic? If so, you can use a filter on tcpdump:

     

     

    tcpdump -ni 0.0 -s0 -w/path/to/output.file.dmp port not 80

     

     

    If this isn't what you're looking for, can you clarify what you're trying to capture/filter out?

     

     

    Aaron
  • Looking for more info other than headers. Want to retrieve and analyze the actual content of the packet.

     

     

    Thanks.
  • You meant to capture the whole packet including the content? if yes, try using option "-s0" like the sample from Aaron (without "port not 80").
  • Need some help with the tcpdump to catpure just the external traffic for a VIP.. here is what I'm using but I keep capturing all the traffic:

     

     

    tcpdump -s0 -i External -w /var/tmp/3194169.cap host 10.222.35.252