Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] Multiple HTTP Requests in 1 Pkt

From: "Luis Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Wed, 28 Mar 2007 17:49:00 +0200
do
 local uri = Field("http.request.uri")

 local listener = Listener.new("frame","http.request")
 function listener.packet()
   uris = {uri()}
   print("count:",#uris)
   foreach j,u in each(uris) do print("uri",j,u) end
 end
end

On 3/28/07, Mark Roggenkamp <mark.roggenkamp@xxxxxxxxx> wrote:
When using Lua to pull out HTTP requests I can use the predefined fields
such as http.request.uri. However, some of the time there are multiple
requests in a single packet according to the wireshark GUI (I presume http
pipelining). I can get to the first request but how do I get to the second
request? Also, how would I know from lua how many requests there are? I was
hoping there was some index I could use like http.2.request.uri but doesn't
look like that's the case. Any ideas?

Many thanks,

Mark

_______________________________________________
Wireshark-users mailing list
Wireshark-users@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-users




--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan