mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 16:45:57 +03:00
[GH-ISSUE #1614] [BUG] Export to HAR doesn't include request body #1607
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1607
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @clouedoc on GitHub (Apr 26, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1614
Originally assigned to: @NghiaTranUIT on GitHub.
Description
I am exporting a whole flow to .HAR in order to programatically analyse them.
I've found that a specific request does not includes the request body in the generated .HAR.
Steps to Reproduce
Download and open this Proxyman log file
proxyman_export_bug_repro.proxymanlogv2.zip
Confirm that the post body of the request is visible

Export to a HAR file
Open the exported HAR file in a text editor
Look at the following path:
.log.entries[0].request. There is no body even though it's visible in the Proxyman log.HAR file
Current Behavior
Some POST requests get their body suppressed when exported to HAR
Expected Behavior
This POST request gets their body exported to HAR correctly
Environment
@NghiaTranUIT commented on GitHub (Apr 26, 2023):
Thanks. I'm able to reproduce it too. I'm fixing it now 👍
@NghiaTranUIT commented on GitHub (Apr 26, 2023):
The problem is: HAR 1.2 Spec doesn't specify how to store the Binary data in the Request body. HAR supports Binary Data in the Response Body (in
content), but ignore the Request for some reason.Request Body is stored at postData, but it only supports String or multipart/form-data.
I will double check with other HAR tool, to see how it handles it 👍
Ref:
@NghiaTranUIT commented on GitHub (Apr 26, 2023):
@clouedoc you can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.6.1_Fix_Missing_Request_body_in_HAR_file.dmg
As I mentioned in the previous comment, there is no technical specification on how to store the Binary Request Body in the HAR 1.2. Therefore, I did research on other tools.
=> Proxyman supports it too 👍
Please note that this HAR file could not be parsed by some online HAR tool, because it's not officially supported.
@clouedoc commented on GitHub (Apr 26, 2023):
Wow, thank you so much! I can resume my work without switching tool, it makes my life easier 🙂
@NghiaTranUIT commented on GitHub (Apr 27, 2023):
Look like there is an bug when parsing the Binary Body from HAR file. It doesn't show the Protobuf data as the
proxymanlogv2does. Fixing it now 👍@NghiaTranUIT commented on GitHub (Apr 27, 2023):
Fixed: https://download.proxyman.io/beta/Proxyman_4.6.1_Missing_protobuf_body_in_Response_in_HAR_file.dmg