Can I use tcpdump to get HTTP requests, response header and response body?

后端 未结 3 514
醉酒成梦
醉酒成梦 2021-01-29 17:25

I am using tcpdump to get HTTP data by executing the below command:

sudo tcpdump -A -s 1492 dst port 80

The result of above com

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 18:06

    Here is another choice: Chaosreader

    So I need to debug an application which posts xml to a 3rd party application. I found a brilliant little perl script which does all the hard work – you just chuck it a tcpdump output file, and it does all the manipulation and outputs everything you need...

    The script is called chaosreader0.94. See http://www.darknet.org.uk/2007/11/chaosreader-trace-tcpudp-sessions-from-tcpdump/

    It worked like a treat, I did the following:

    tcpdump host www.blah.com -s 9000 -w outputfile; perl chaosreader0.94 outputfile
    

提交回复
热议问题