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

how to print out http request body as text from a package capture file?

0

Hi,

I have a capture that I can read from tshark but I can't find an option to print out the request body as text to console. Do you know it is possible? If so, can you provide me an example?

Thanks,

asked 02 Jul '13, 01:27

seannguyen's gravatar image

seannguyen
16335
accept rate: 0%

Do you want to print the whole request body or just the requested URL/URI?

(02 Jul '13, 01:45) Landi

One Answer:

0

Well, you can print out the HTTP protocol container's decoded text with the -O http option in tshark if that's what you're looking for. If just one specific field, you can do -T fields -e {container} to have it output a specific protocol container, such as the URI if that's what you want.

answered 02 Jul '13, 15:18

Quadratic's gravatar image

Quadratic
1.9k6928
accept rate: 13%