you also might want to take a look at using ethereal (GUI) and/or tethereal (CLI) as replacements for tcpdump. It's packet selection mechanism is able to analyze HTTP, so you can do your selection of traffic there, for instance this selects all GET and HEAD requests from a live capture on one of my ethernet interface:
tethereal -i eth1 -R'http.request.method == "GET" || http.request.meth
+od == "HEAD"'
outputs:
7.518730 66.27.72.141 -> 192.172.226.123 HTTP GET / HTTP/1.1
7.616699 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_1
+_1_HOME.gif HTTP/1.1
7.638719 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_2
+_1_HOME_overview.gif HTTP/1.1
7.641536 66.27.72.141 -> 192.172.226.123 HTTP GET /images/nav_1_2_GL
+OBAL_globe.gif HTTP/1.1
7.670158 66.27.72.141 -> 192.172.226.123 HTTP GET /images/nav_2_2_GL
+OBAL_globe.gif HTTP/1.1
7.694446 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_3
+_1_HOME_overview.gif HTTP/1.1
7.714087 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_3
+_2_HOME_globe.gif HTTP/1.1
replace -i <iface> with -r <file> to read from file.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|