This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to write dissector for http request body with special header?

1

Hi,

I want to write a dissector for http request body when a certain header present in the request (for example protocol: my protocol). Can somebody give me direction of how to do that?

Thanks

asked 14 Feb '13, 14:24

seannguyen's gravatar image

seannguyen
16335
accept rate: 0%

edited 15 Feb '13, 08:47

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

1

You can only do that if you register for a specific media-type, as defined through http.content-type. There's no other way to influence the HTTP dissector for body dissection than altering the HTTP dissector code itself.

answered 14 Feb '13, 14:41

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Can you show me how to do it with a specific media-type header? I am very new to wireshark dissector. Thanks

(15 Feb '13, 07:01) seannguyen