hi I have a pcap file with some packets coming from squid cache. looking at wireshark, I can view the x-cache header under the HTTP section. however, I can not find an equivalent field for tshark . I have tried composing a lua listener to extract the info myself , but the tvb field is NIL for all packets . can anyone help ? asked 28 Dec '11, 00:32 yoav |
2 Answers:
You can add custom http header fields to the HTTP preferences setting, which will then allow you to access them (also as a filter, which won't be available without adding it to the preferences first). Gerald wrote an answer to a similar question here, which might help: http://ask.wireshark.org/questions/816/tshark-custom-http-headers answered 28 Dec '11, 07:43 Jasper ♦♦ edited 28 Dec '11, 07:44 thanks ! this was well hidden - but it sure works :-) (28 Dec '11, 22:40) yoav |
X-Cache is not a filterable field, but you can use TShark and awk or grep:
answered 28 Dec '11, 07:39 joke In addition to Jasper's answer.
(28 Dec '11, 13:01) joke |
do you just want to extract the text inside HTTP stating "X-Cache..."?