Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxyman 2.19.0 on Windows: Incomplete Display of Hexadecimal Request Bodies and Lack of JSON Decoding Support #460

Open
aa1134665908 opened this issue Dec 31, 2024 · 6 comments
Assignees
Labels
bug Something isn't working ✅ Done Ticket is resolved

Comments

@aa1134665908
Copy link

Description
When using Proxyman version 2.19.0 on Windows to view request bodies containing hexadecimal data, the application fails to display the complete content. Additionally, the Windows version lacks JSON compatibility for decoding such content.

Steps to Reproduce
Install Proxyman version 2.19.0 on a Windows system.

Intercept a request containing hexadecimal data in the body.

Attempt to view the full request body in Proxyman.

Try to use JSON decoding for the hexadecimal content.

Current Behavior
Proxyman fails to display the complete hexadecimal content in the request body.
The Windows version does not provide JSON compatibility for decoding the hexadecimal data.
Expected Behavior
Proxyman should display the full hexadecimal content in the request body without truncation.
The Windows version should offer JSON compatibility or an alternative method to properly decode and display hexadecimal data.
Environment
App version: Proxyman 2.19.0
Windows/Linux version: Windows (latest version)

bug.mp4
@aa1134665908 aa1134665908 added the bug Something isn't working label Dec 31, 2024
@NghiaTranUIT
Copy link
Member

@aa1134665908 are you sure it's a JSON Text? It looks like it's encoded by some algorithm. If yes, please check the Content-Encoding header in your Request and share with me.

By default, if the body is text base, Proxyman tries to parse it as a JSON and prettify it

@aa1134665908
Copy link
Author

@aa1134665908 are you sure it's a JSON Text? It looks like it's encoded by some algorithm. If yes, please check the Content-Encoding header in your Request and share with me.

By default, if the body is text base, Proxyman tries to parse it as a JSON and prettify it

Thank you for your request for more information. I can provide you with the headers of a request that demonstrates this issue:

user-agent: Mozilla/5.0 (Linux; U; Android 4.1.1; ja-jp; T-01D Build/F0001) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 NEWSAY
connection: close
accept-encoding: identity
content-type: application/json; charset=utf-8
content-length: 172

As you can see, the content-type is set to application/json with UTF-8 charset. However, the body contains hexadecimal data, not JSON. In the Mac version, Proxyman automatically handles this discrepancy and displays the data correctly. In the Windows version (2.19.0), the hexadecimal data is not fully displayed, and there's no option to decode it properly.

Could you please investigate why the Windows version is unable to display the full hexadecimal content and why it lacks the automatic decoding feature present in the Mac version?

img_v3_02i2_cc8e1c58-2f29-4015-9bc3-cf3336ee7c0g

@kics223w1
Copy link

Yes we can. I will try to reproduce this issue and fix it.

@NghiaTranUIT
Copy link
Member

@aa1134665908 to work around this, please open the Raw Tab, select your text body -> Right Click -> Show as Base64.

It will decode your base64 string to JSON and auto prettify it

@NghiaTranUIT
Copy link
Member

@kics223w1 it's a bug. If a body is a string, please show the body in the body too. Currently, it displays as a Hext in the Body Tab

@kics223w1
Copy link

Okay I will fix this.

@kics223w1 kics223w1 self-assigned this Dec 31, 2024
@kics223w1 kics223w1 added the ✅ Done Ticket is resolved label Jan 13, 2025
@kics223w1 kics223w1 moved this from PR in Review to Done in Proxyman Windows/Linux development Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ✅ Done Ticket is resolved
Development

No branches or pull requests

3 participants