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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://www.wireshark.org/mailman/listinfo/wireshark-users
>
>


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan
_______________________________________________
Wireshark-users mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-users

Reply via email to