Skip to content

Instantly share code, notes, and snippets.

@joar
Created February 24, 2010 14:33
Show Gist options
  • Save joar/313473 to your computer and use it in GitHub Desktop.
Save joar/313473 to your computer and use it in GitHub Desktop.

Wireshark HTTP traffic debugging

Usage

Without traffic source filtering http && http.content_type != "text/css" && http.content_type != "application/javascript" && http.content_type != "image/jpeg" && http.content_type != "image/png" && http.content_type != "image/gif"

With traffic source filtering ( in this case 173.203.203.8 is my remote server ) http && ( ip.src == 173.203.203.8 || ip.dst == 173.203.203.8 ) && http.content_type != "text/css" && http.content_type != "application/javascript" && http.content_type != "image/jpeg" && http.content_type != "image/png" && http.content_type != "image/gif"

Explanation

Inlude only HTTP traffic
http

Filter traffic sources, in this case "173.203.203.8" is my remote server ( optional ) && ( ip.src == 173.203.203.8 || ip.dst == 173.203.203.8 )

Sort out stylesheets && http.content_type != "text/css"

Sort out scripts && http.content_type != "application/javascript"

Sort out images && http.content_type != "image/jpeg" && http.content_type != "image/png" && http.content_type != "image/gif"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment