HAR
From Just Solve the File Format Problem
(Difference between revisions)
Ross-spencer (Talk | contribs) (Add expected fields) |
Ross-spencer (Talk | contribs) (→Other links) |
||
(One intermediate revision by one user not shown) | |||
Line 10: | Line 10: | ||
== Expected fields and objects == | == Expected fields and objects == | ||
+ | |||
+ | Within a <code>log</code> object: | ||
* version [string] | * version [string] | ||
Line 17: | Line 19: | ||
* entries [array] | * entries [array] | ||
* comment [string, optional] (new in 1.2) | * comment [string, optional] (new in 1.2) | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <pre> | ||
+ | { | ||
+ | "log": { | ||
+ | "version": "1.2", | ||
+ | "creator": {}, | ||
+ | "browser": {}, | ||
+ | "pages": [], | ||
+ | "entries": [], | ||
+ | "comment": "" | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
== Specs == | == Specs == | ||
Line 31: | Line 48: | ||
* [[Wikipedia:.har|Wikipedia article]] | * [[Wikipedia:.har|Wikipedia article]] | ||
* [http://www.speedawarenessmonth.com/what-is-a-har-file-and-what-do-i-use-it-for/ What is a HAR File and what do I use it for?] | * [http://www.speedawarenessmonth.com/what-is-a-har-file-and-what-do-i-use-it-for/ What is a HAR File and what do I use it for?] | ||
+ | * [https://gist.github.com/igrigorik/3495174 Example HAR Export] | ||
[[Category:Archiving]] | [[Category:Archiving]] | ||
[[Category:JSON based file formats]] | [[Category:JSON based file formats]] |
Latest revision as of 20:13, 16 April 2025
HAR (HTTP Archive) is a format based on JSON for saving a record of a Web access, including the HTTP request and response headers used to retrieve a document, and timing information on how long each part took to load. They can be used in server analysis and in archiving of Web data. HAR files are required to be encoded in the UTF-8 character encoding.
.har files are raw HAR, while .harp files are HAR enclosed in a callback function for use as JavaScript code.
Contents |
[edit] Expected fields and objects
Within a log
object:
- version [string]
- creator [object]
- browser [object, optional]
- pages [array, optional]
- entries [array]
- comment [string, optional] (new in 1.2)
[edit] Example
{ "log": { "version": "1.2", "creator": {}, "browser": {}, "pages": [], "entries": [], "comment": "" } }