-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Description
When exporting traffic as HAR from Proxyman, the generated file is not fully compliant with the HAR 1.2 specification.
Because of this, some tools (Firefox Network Monitor and our in‑house HAR viewer) cannot open the file.
There are two issues:
log.pagesis missing completely.- Some entries in
log.entriesdo not contain aresponseobject.
Steps to Reproduce
- Start Proxyman.
- Capture some HTTPS traffic.
- Export the session as HAR.
- Open the exported HAR file in Firefox Network Monitor (or another HAR viewer that expects HAR 1.2).
Current Behavior
-
The exported HAR file has this structure at the top:
{ "log": { "version": "1.2", "creator": { "name": "Proxyman", "version": "3.5.0" }, "entries": [ { "startedDateTime": "2025-11-27T11:56:26+01:00", "time": 1948, "request": { ... } // in some entries there is no "response" object } ] } } -
There is no
log.pagesfield. -
Some entries in
log.entriesare missing theresponseobject (or it isnull).
This causes errors in other tools, for example in Firefox:
Error while processing HAR file: can't access property "forEach", har.log.pages is undefined
Error while processing HAR file: can't access property "headers", entry.response is undefined
Expected Behavior
-
log.pagesshould be present and be an array, for example:"pages": [ { "startedDateTime": "2025-11-27T11:56:26+01:00", "id": "page_1", "title": "Proxyman export", "pageTimings": {} } ]
-
Every
entryinlog.entriesshould contain aresponseobject, even for failed/aborted requests, e.g.:"response": { "status": 0, "statusText": "", "httpVersion": "HTTP/1.1", "cookies": [], "headers": [], "content": { "size": 0, "mimeType": "", "text": "" }, "redirectURL": "", "headersSize": -1, "bodySize": -1 }
This would make the exported HAR files compatible with Firefox, Chrome DevTools and other HAR analyzers (including our internal viewer).
Environment
- App version: 3.5.0
- Windows/Linux version: Windows 11