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

Would be really nice to use Wireshark to inspect .har files generated by Chrome's web inspector; however an error is displayed and opening these files fails:

The capture file appears to be damaged or corrupt. (vwr: Invalid length 2105378(runs past the end of the record))

mac version 1.99.7

asked 30 Jun '15, 07:02

keepaustinugly's gravatar image

keepaustinugly
6112
accept rate: 0%

A list of tools which are supporting the *.har files can be found here: http://www.softwareishard.com/blog/har-adopters/

(30 Jun '15, 14:56) Christian_R

Charles Proxy v3.8.3 will load .har files but newer versions throw an error. Charles is great and all but its no Wireshark.

(30 Jun '15, 15:38) keepaustinugly

What is it you'd like Wireshark to do with it? As far as I know, HAR files don't actually contain packet details really - yes they contain the HTTP request/response info, but really as higher-level meta-data, not as the real sequence of UTF-8 characters that actually comprised the HTTP layer of the packets. (not to mention it won't have the TCP or IP info) It's not really possible to reconstruct the original HTTP messages from a HAR, as far as I can tell. Am I wrong? (could be - I don't know HAR very well)

But let's say Wireshark could read the HAR file - what is it you'd like to see it show? I ask because it's possible to write a HAR file reader for Wireshark, either in Lua or C-code, but it's not clear what it should do with the info; or how it would be more useful to people than the already-available HAR file reader tools.

permanent link

answered 30 Jun '15, 15:54

Hadriel's gravatar image

Hadriel
2.7k2939
accept rate: 18%

That's because Wireshark doesn't support reading those files.

If you'd like Wireshark to be enhanced to read them, file a request for enhancement at the Wireshark Bugzilla, and make sure you do what Hadriel says in his reply, so that we know what you'd expect Wireshark to do with those files.

permanent link

answered 30 Jun '15, 20:32

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

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:

×15
×6
×4
×1

question asked: 30 Jun '15, 07:02

question was seen: 4,938 times

last updated: 30 Jun '15, 20:32

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