Questions tagged [har]

har is the HTTP Archive format that can be used by HTTP monitoring tools to export collected data.

har, the HTTP Archive format, is adopted by browsers and tools to persist network analysis data captured (collected) monitoring the page activity (i.e. to see what resources a web page is using, bandwidth and cache usage, and so on). har files (HTTP tracing logs) can be processed by specific statistical software or visualized by tools such as for example harviewer. See also the HAR 1.2 Specification

170 questions
0
votes
0 answers

HAR file reading error: log.entries is expected to be an array

I have generated a HAR file from an Android Emulator on Appetize.io. When I try to read the file in Chrome Dev tools I get the following error: log.entries is expected to be an array. You can find a sample HAR file here: Pastebin. How can I fix this…
DreiDe
  • 109
  • 1
  • 10
0
votes
0 answers

JavaScript - Saving a HAR file based on a website URL to the location of the .js file

I have tried using Browsermod-proxy and fs but it keeps giving me errors about missing 'fsevents' or 'msgpack'. I've been looking and testing for at least a solid 15 hours and i cant seem to find anything.
Tyler
  • 29
  • 1
  • 3
0
votes
1 answer

What to write in HAR when request does not have an answer?

I have a situation where I get Chrome's performance logs after running some automated tests. Then I parse it with a script I made to get a HAR file (http://www.softwareishard.com/blog/har-12-spec/). Everything runs works correctly most of the times,…
Andre Guilhon
  • 378
  • 4
  • 9
0
votes
1 answer

How to save HAR files from a Windows application integrated with Chromium app?

We have a Windows application that is integrated with Helix Server (Chromium app). We use LeanFT for automating the Windows application. We also need the performance logs (HAR file) for the scenarios we test. By pressing Ctrl + Alt + D we can…
0
votes
0 answers

Where do I run DevTools code?

I want to get a HAR file using chrome.devtools.network.getHAR(). Specifically, I am using Selenium within a MahiMahi replay shell, and I want to inject JS that will dump the HAR into a file. The standard JS injection (Selenium's executeScript…
K. Dackow
  • 456
  • 1
  • 3
  • 15
0
votes
0 answers

How do I export a HAR file from CefSharp

I have CefSharp (WinForms) to display a browser for UI Testing. I want to implement some functionality to automatically save the network requests as HAR File - similar to chrome devtools, when you access the network tab. I could not figure out if…
0
votes
1 answer

How do I get browsermob-proxy to record ALL response bodies

I'm having trouble with browsermob-proxy and its har exporting feature. Some response bodies are not logged (the entire "text" field is missing) My setup (using browsermob-proxy 2.1.4) curl -X POST http://localhost:8080/proxy?port=9091 curl -X PUT…
Cyberwiz
  • 11,027
  • 3
  • 20
  • 40
0
votes
2 answers

how to generate HAR file in the Chrome?

I want to use the function 'Preserve log' at the network tab in the Chrome Dev Tools. I searched internet and found following site. However, it does not work as it indicates. Does anyone have used preserve log and generate HAR file from it?…
Anna Lee
  • 909
  • 1
  • 17
  • 37
0
votes
1 answer

Get only POST request/response in BrowserMob in Java

It is possible to filter all har object and get only POST request/response? Maybe during initialized BrowserMobProxyServer is way to do it? I need to save har object into file and upload into har viewer. Har har = proxyServer.getHar();
Mateusz Sobczak
  • 1,551
  • 8
  • 33
  • 67
0
votes
1 answer

Stream HAR events

I have a long running app that I'd like to monitor in real time. HAR files allow me to do this after the fact, but as they are an "archive", they don't allow me to do this in real time. Is their anyway to stream the "events" array of the HAR file…
spotter
  • 1,178
  • 1
  • 9
  • 19
0
votes
0 answers

Log, debug, analyze HTTP requests within server-side framework views

We are exploring the use of a PHP framework, Slim, and are interested in the ability to log, debug, and analyze all sever-side HTTP requests that framework views are making. We would like to see the results of those requests client-side. For…
ghukill
  • 1,136
  • 17
  • 42
0
votes
0 answers

When processing HAR file need to get entries for one page at a time

I am trying to get the total load time for each page by parsing a HAR file. I found a code segment where the total time is found by subtracting the time of the last get from the start of the page. So far so good. I have an outer loop that goes…
Tariq
  • 1
  • 2
0
votes
1 answer

How to get page load time from har file in python?

I'm trying to get the page load time. I'm using BrowserMob Proxy with selenium to generate the HAR file and haralyzer to read the HAR file. Details and error log is here, Please suggest if there are any other way to achieve this.
pr4bh4sh
  • 654
  • 3
  • 12
  • 19
0
votes
1 answer

Rewrite HAR content via BrowserMobProxy and Selenium

Is it possible to change the har (with json in it) response from an https site? I see the initial json by getText(), then use setText(), and change its size by setSize and setBodySize. The content is changed as I see in debug. But it seems that…
0
votes
1 answer

browserMob proxy with phantomjs throws "java.net.UnknownHostException" for http protocol

Trying to use PhantomJS(com.codeborne:phantomjsdriver:1.2.1) for some headless browser testing along with BrowserMob Proxy(browsermob-proxy-2.0-beta-9) to capture HAR files and Javascript execution. It works for urls with https(eg.…
Programmer
  • 175
  • 1
  • 2
  • 17