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
1 answer

How to concatenate values for the same key in selecting from a json based har file using jq

I am trying to generate a .csv file from processing a .har (JSON based) file. My current command is like this (note that I need to have ascii_downcase as name is found in upper, lower and Initcaps): cat "$har1".har | $jq -r '[ "Name",…
Sanjay S
  • 1
  • 1
0
votes
1 answer

Best way to process an uploaded JSON file locally (client) using JS

I want to upload a HAR file (which is based on the JSON format) and filter out all the unwanted private data like cookies etc. Basically, I need to create a new JSON file with the data from a selected group of fields and all of this has to happen…
0
votes
1 answer

Is there a way to save responses to browser's HTTP requests as they happen?

For example, I know I can use Chrome's "Export HAR..." feature, but if I had the page open for an hour or so, "Export HAR" only saves the contents of the more recent requests, where the archive files representing earlier requests are actually empty.…
Vitaly
  • 4,358
  • 7
  • 47
  • 59
0
votes
0 answers

Copying the first N lines of one HAR file to another in Python

I'm doing a project using python and I'm trying the filter an HAR file and copy it into another readable file. For the HAR file to be readable, the first few lines from the original file must be copied to the output file. However when I try to copy…
Angele Aquilina
  • 3
  • 1
  • 3
  • 9
0
votes
0 answers

How to achieve human-readable mitmdump output file without internet/python/pip/etc.?

I've seen various old/gone ideas -- like the '-dd' switch -- and i've seen myriad contrib options, all of which seem to require python, and pip, and internet, and a whole bunch of things that I just don't have in my current environment. it the…
Peter Smith
  • 534
  • 2
  • 8
  • 19
0
votes
1 answer

How to create HAR(Hadoop Archive) from Java?

I do rest-service which must create har-files in hadoop cluster. This rest works on application server, not in hadoop cluster. I use org.apache.hadoop.tools.HadoopArchives for this. But I don know how to set cluster when I create HadoopArchive…
Dr. Ew
  • 1
  • 1
0
votes
3 answers

Python - Accessing elements within file containing text string

I have a file which contains this text: {"Referer": "https://dashboard", "Accept-Language": "en-GB","CST": "46e01f86be307fd0509217271e8c8c3cdcb0e661ee12f872a473cdeb26ac060201111", "Sec-Fetch-Site": "same-origin", "Accept-Encoding": "gzip, deflate,…
0
votes
0 answers

Unable to identify cause of "err_connection_reset" with AJAX call

Updated 11th Feb Running an ASP.NET MVC website. On this, we have one page that has multiple AJAX GET and one user-initiated AJAX POST back to our server. For a very small percentage of users (but significant number), they're getting…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
0
votes
1 answer

org.codehaus.jackson.JsonParseException: Unrecognized field '_transferSize' in response element, While reading HAR file by java

this code works perfectly if there is no field called _transferSize, sample har : "cookies": [ { "name": "x-amz-captcha-1", "value": "1577615972915416", "path": "/", "expires":…
Nick
  • 689
  • 14
  • 27
0
votes
0 answers

HAR file generated using SauceREST API doesn't contain all requests like network logs from chrome developers tool

I have a HAR log file downloaded for particular url from SauceLabs through automated test. I open the same url manually and look at the network logs from the chrome developers tool. When I compare requests in these two places, some of the domains…
Julia
  • 1
  • 1
0
votes
0 answers

Overlay on map not drawing properly, is this a cache issue?

The site in question is multi.reindicator.com We have market and neighborhood overlays using Carto, but many users experience an issue where the overlays don't show up properly. This is sometimes resolved when clearing browser cache, but a lot of…
Zii
  • 1
  • 5
0
votes
2 answers

How do i get headers from Browsermob-proxy?

What i need : Proxy server log file of a session that includes content/text of the traffic/responses. What i have : Working silenium webdriver and browsermobproxy server log (*but without headers!). browsermob-proxy working on…
Moshe
  • 461
  • 1
  • 5
  • 15
0
votes
1 answer

How to replace a values present of a url in a text file

I have a har file which consist of lot of http values and site information. my requirement is to find and replace the "http://testing.smart" to "http://staging.smart" in all occurrences of the same file. How to do this in shell…
0
votes
1 answer

How can you record a `.har` of an Electron `webContents` session?

I have a Javascript application that spawns Electron and does a bunch of stuff in it. I'm trying to debug a strange network issue I'm having, and to do this, I'd like to use a HAR file to store a log of all the HTTP requests being made by…
Zach Bloomquist
  • 5,309
  • 29
  • 44
0
votes
1 answer

How to calculate the 'Finish' time shown in Chrome DevTools Network tab from the HAR object?

I am creating a Chrome Extension. I retrieved the HAR object from the DevTools panel. I am able to get the 'Load' and 'DOMContentLoaded' time from the HAR object, pages: [ { "startedDateTime": "2019-03-07T22:16:02.333Z", "id": "page_2", …