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

Using TShark, I want to be able to extract the payload in HTTP response from packets data captured through tshark in a .pcap file.

In the Wireshark GUI, I was able to do that by File > Extract Objects > HTTP, and then choosing a file from the HTTP Objects dialog (which shows a list of all HTTP objects), and saving it on my disk. This process is described here.

The question is that how can I do it in Tshark?

asked 19 Aug '16, 03:16

Jesss's gravatar image

Jesss
51141720
accept rate: 0%


In short, not implemented yet :(

EDIT: As of Wireshark 2.3.0, this feature is available. As of December 2016, Wireshark 2.3.0 hasn't been released yet, so you can grab a daily build from here. To extract HTTP objects from the command-line, run the following command:

tshark -r mypcap.pcap --export-objects "http,destdir"
permanent link

answered 13 Nov '16, 09:29

moshe's gravatar image

moshe
21125
accept rate: 0%

edited 13 Dec '16, 15:30

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×832
×293
×8

question asked: 19 Aug '16, 03:16

question was seen: 7,449 times

last updated: 13 Dec '16, 15:30

p​o​w​e​r​e​d by O​S​Q​A