How to log all requests by an app including post data? (Squid?)

PROXYsquid

I'm testing a flash app and need to log every HTTP post request it makes so I need to be able. My default setting is to use squid. What can I do?

Best Answer

On your server, run:

$ tcpdump -w ~/capture.log -s 0 port 80

That will capture all traffic on port 80 and log it to capture.log in your home directory. After starting this command, perform whatever actions you are testing, and then Ctrl-C to stop the capture. When complete, you can use either tcpdump or preferrably the GUI program Wireshark to inspect and analyze the capture.