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] Access reassembled HTTP data with Lua

From: "Luis EG Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Wed, 18 Jul 2007 11:59:15 +0200
Sorry for the confusion:
  tvbrange = http.range
should do.


On 7/18/07, Petter Strandmark <p04pst@xxxxxxxxxxxxxx> wrote:
I had to replace "FieldExtractor" with "Field" to make it compile.

I also get the error:

"[string "test.lua"]:10: attempt to call method 'get_range' (a nil value)"

/Petter

> do
>     local http = FieldExtractor.new("http")
>
>     -- ...
>
>     function listener.packet()
>        -- ...
>        local http_tvbrange =  http():get_range()
>     end
> end
>
> On 7/18/07, Petter Strandmark <p04pst@xxxxxxxxxxxxxx> wrote:
>> Hi,
>>
>> I have just started looking at Lua scripting in Wireshark. Within
>> wireshark, I can access the reassembled HTTP data sent from the web
>> server. This data is decompressed if it was compressed with gzip.
>>
>> How can I access this data from a Lua script?
>>
>> Best regards,
>> Petter Strandmark
>>
>> _______________________________________________
>> 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
> _______________________________________________
> Wireshark-users mailing list
> Wireshark-users@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-users
>


_______________________________________________
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