Test your knowledge!Take a quiz to access yourself.

How to generate HAR file

HAR(HTTP Archive) is file format used in analyzing HTTP traffic for a variety of purposes. It records the HTTP communication happened through the browser and shows that in a more user friendly and more understandable manner.
Why to create a HAR file?

In many situations, your system might get down on Internet and rebooting the device might not be the ultimate solution. Of course, one always got an alternative to ignore such situations by simply formatting the device but is it worthy when simple analysis could give you the root cause of “what just happened” and help you in resolving issue on your own. So what would you be betting on??

I just explained you one situation, you might use HAR file but there are many others too like how long does it take to fetch your DNS infos or are you able to connect with the server.

How to create HAR file?
Internet Explorer

It’s very easy to add tool in internet explorer to save HAR file from.

  • Download and Install HttpWatch. Use this link to download: https://www.httpwatch.com/download/
  • Start the HttpWatch capture right before reproducing the behavior you want to study
  • Stop the HttpWatch capture right after reproducing the behavior to study
  • Sport the capture to HAR format

Firefox

HttpWatch can also work with Firefox in the same way as with Internet Explorer as long as you are using Windows as your Operating System.

Otherwise if you just want something more portable, then you can use Firebug  in addition to latest version of NetExport extension which works as a Firebug complement, allowing you to export the contents of the “Network” tab to a Har file in your Hardisk.

  • Download and Install Firebug – A firefox plugin
  • Download and Install NetExport – A firefox plugin. Refer this link: https://getfirebug.com/releases/netexport/
  • Open the Firebug window in Tools and go to the network tab
  • Allow capturing the Http session for the current tab
  • Export the capture to a HAR file

Chrome

You can record your HTTP session using the Network tab in the Developer Tools in Chrome.

  • Open the Developer Tools from the menu (Menu > Tools > developer tools), or by pressing Ctrl+Shift+C on your keyboard
  • Click on the Network tab
  • Look for a round button at the top left of the Network tab. Make sure it is red. If it is grey, click it once to start recording.
  • Check the box next to Preserve log.
  • You can use the clear button (a circle with a diagonal line through it) right before trying to reproduce the issue to remove unnecessary header information
  • Save the capture by right-clicking on the grid and choosing “Save as HAR with Content”

 

Add a Comment

Your email address will not be published. Required fields are marked *