Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I view / replay a chrome network debugger har file saved with content?

People also ask

How do I read an .HAR file?

You can open HAR files with various programs, including the online HAR Viewer tool and the open source, cross-platform HTTP Toolkit. Since HAR files are saved in JSON format, you can also open them using a JSON editor or a plain text editor, such as Microsoft Notepad or Apple TextEdit.

How do I replay a XHR in Chrome?

Right click on the request made and click "Replay XHR".

How do I replay a post request?

Just right click on the request and select Replay XHR. Another way as others pointed out is to: Right click request > "Copy" > "Copy ss curl".


There is an HAR Viewer developed by Jan Odvarko that you can use. You either use the online version at

  • http://www.softwareishard.com/har/viewer/ (older version)
  • http://gitgrimbo.github.io/harviewer/master/ (up-to-date master branch)

Or download the source-code at https://github.com/janodvarko/harviewer.

EDIT: Chrome 62 DevTools include HAR import functionality. https://developers.google.com/web/updates/2017/08/devtools-release-notes#har-imports


Chrome Dev Tool's "Network" tool now allows you to import HAR files by drag-and-dropping into the window.


There are a couple of online, offline tools how to do this:

  • HAR viewer
  • HAR analyser

But the one that I liked the most, is a browser extension (tried it in chrome, hopefully it works in other browsers). After installation, it appears in your apps as HAR viewer. Then you can upload you HAR file and see something like this:

enter image description here


The Most Reliable way to replay har file is using a free tool like Fiddler, the tool is always free and can be downloaded quickly. The sites for the opening har file are all buggy and cannot open large files. Fiddler is available for all platforms.

https://www.telerik.com/download/fiddler

Go to File Menu -> Import Sessions...

Open Fiddler

Select the "HTTPArchive" Option

Select the Http Archieve option

Browse to your HAR file

enter image description here

The HAR file will open and replay on the fiddler window.