Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to see whole HTTP packets sent and recieved by an application for debugging purposes. How can this be done in command-line?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can use a tcpdump command like:

$ sudo tcpdump -i <interface> -s 1518 -XX -vv -n "tcp port 80"

You customize the command according to your needs. You can add -w filename.pcap to save the dump to a file. Then, you can read the dump file using -r filename.pcap.

share|improve this answer
2  
You can use -s0 for no limit to the snaplen. –  Cakemox Mar 4 '11 at 11:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.