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
187
votes
12 answers

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

I love the network debugger, that being said, what programs are out there that let me step forward and backward through multiple 'hars' so I can replay them? if the 'hars' are saved with content, can the replay handle that as well? right now I just…
DefyGravity
  • 5,681
  • 5
  • 32
  • 47
31
votes
3 answers

How to capture all requests made by page in webdriver? Is there any alternative to Browsermob?

I am using Selenium2/WebDriver to test my web applications. All the tests are written in Java and run with Maven. While opening a page with webdriver I'd like to capture all the requests made by page (images, js and css files, etc). I use this data…
JacekM
  • 4,041
  • 1
  • 27
  • 34
27
votes
3 answers

Automatize HAR files generation from Google Chrome

Basically what I need is a way to automatize the result of the following operations: open a new tab; open the Network tab in the developer tools; load an URL; select "Save All as HAR". Often, proposed solutions involves the use of PhantomJS,…
cYrus
  • 2,976
  • 6
  • 29
  • 47
24
votes
2 answers

How to serialize requests Response object as HAR

I want to serialize a requests Response object as json, preferably in HAR format. import requests resp = requests.get('http://httpbin.org/get') har = to_har(resp) # <--- magic but couldnt find anything online with my google-fu powers. it seems…
ShmulikA
  • 3,468
  • 3
  • 25
  • 40
12
votes
2 answers

How to parse HAR file to extract text content?

I saved my network data in a har file. Now I want to extract the whole dictionary of content that contains specific word as an indicator to save that dictionary to an array. There are multiple similar dicts in the har file that contain that value…
alias micheal
  • 121
  • 1
  • 1
  • 5
12
votes
3 answers

How to repeat Chrome requests as curl commands?

For some automated tests that I did, I had to record requests from Chrome, and then repeat them in curl commands. I start checking how to do it...
ElyashivLavi
  • 1,681
  • 3
  • 22
  • 33
12
votes
5 answers

How to import HAR file to excel

I have to know some informations about documents loaded by a browser (e.g. chrome ) for that inspect element is good choise. Now I have to import data to an excel. Inspect element allow to save data as .har ( http archive) file. How I can save…
Hafiz Muhammad Shafiq
  • 8,168
  • 12
  • 63
  • 121
10
votes
2 answers

Can a har file be programmatically generated from headless chrome using Puppeteer?

I would like to control a headless chrome instance using puppeteer, taking snapshots and clicking on various page elements, while capturing a har file. Is this possible? I have looked at the API but haven't found anything useful.
Atlas1j
  • 2,442
  • 3
  • 27
  • 35
8
votes
3 answers

Can I export HAR file from Chrome Dev tools, which contains only the filtered requests from Network tab?

In Chrome Dev tools/Network tab I have filtered the requests using filter like "-.json -.png -.woff2". I want to export the remaining requests (those which are visible on the screen). However when I use "Export HAR..." icon, in the output HAR file I…
Jaxx
  • 1,355
  • 2
  • 11
  • 19
8
votes
2 answers

Create a har file with xhr request only in chrome dev tools

Is there a way to create a har file with xhr request only in chrome dev tools? Even though I can filter the requests in dev tools, when I save it as a har file, it contains all the requests. If the dev devtools doesn't support that, is there a…
Sandeepa
  • 3,457
  • 5
  • 25
  • 41
8
votes
6 answers

Is there any way to automatically generate har files?

I'm trying to automate page load time testing. I'm imagining running a cron job every couple hours that will load various pages from my website, retrieve the associated har files, and process the data. The part I can't figure out is how to…
valen
  • 807
  • 1
  • 16
  • 43
7
votes
1 answer

Filter and save back HAR Files

Background I am working on a tool that would let users upload HAR files and keep replaying them over and over and gather analytics, like average speed over time, service availability etc. I already have core code in place here, that takes Har…
Shaunak
  • 17,377
  • 5
  • 53
  • 84
7
votes
3 answers

Automate "Save as HAR with Content"

I am familiar with how to use the Google Chrome Web Inspector to manually save a webpage as a HAR file with the content. I would like to automate this. In my searches for tools to automate the generation of a HAR file, I have found some solutions,…
Teddy
  • 18,357
  • 2
  • 30
  • 42
6
votes
3 answers

Chrome HAR File size limitation

Environment Windows 10 Chrome Version 66.0.3359.181 (Official Build) (64-bit) Problem at hand For debugging purpose, I log network traffic and save it as a HAR file. When the resulting HAR file is large ( > ~12Mb ) it's content is truncated,…
NadavRub
  • 2,520
  • 27
  • 63
6
votes
1 answer

Node.js Proxy with custom Http(s) Agent and Connect.js Middleware

I've put together a proxy server in Node that needs the ability to tunnel https requests over tls and that all works. Using the the following two packages this was extremely easy to setup: proxy, https-proxy-agent. My issue is that I'm trying to…
mike
  • 8,041
  • 19
  • 53
  • 68
1
2 3
11 12