Mark Needham

Thoughts on Software Development

Archive for the ‘wireshark’ tag

Wireshark: Following HTTP requests/responses

with 2 comments

I like using Wireshark to have a look at the traffic going across different interfaces but because it shows what’s happening across the wire by the packet it’s quite difficult to tell what a request/response looked like.

I’ve been playing around with restfulie/Vraptor today so I wanted to be able to see the request/response pair when something wasn’t working.

I didn’t know it was actually possible but this post on StackOverflow describes how.

First we need to select the row which contains any part of our request/response – in this case I just selected the row representing the request – and then we go to the Analyze menu and click ‘Follow TCP Stream’:

Follow tcp stream

We can then see the requests/responses which happened all next to each other:

Show stream

The keyboard shortcut to get to that menu is ‘Alt-A F’ but for some reason the ‘Alt’ key wasn’t working for me by default so I had to follow the instructions on Francis North’s blog to get it working.

Written by Mark Needham

January 14th, 2012 at 11:20 pm

Posted in Software Development

Tagged with