How do I sniff HTTP traffic on OS X Lion?

1

I'm developing a web application and I'm trying to check the HTTP traffic is going on whenever a page loads.

Which application can I use? I'm on OS X Lion. I'm fine with either command line based or gui based apps. I just need to know whenever the app does a GET/POST to the server.

tommi

Posted 2011-10-15T00:42:16.787

Reputation: 163

why not good old tcpdump? – MaQleod – 2011-10-15T01:50:04.867

should add the command to specify http traffic: tcpdump -i <interface> port 80 or 443 – MaQleod – 2011-10-15T02:00:49.343

Hi! Thanks to your comment. U reminded me of tcpdump and I went to do a search. I didn't know tcpdump could do that! Here is a link to the post which gave me more details on what I wanted.

– tommi – 2011-10-15T07:43:45.357

Answers

2

Wireshark is the best tool for sniffing network traffic. And it works on Lion as this posting demonstrates: http://ask.wireshark.org/questions/5652/osx-lion-release

Michael Dillon

Posted 2011-10-15T00:42:16.787

Reputation: 899