ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.48k stars 179 forks source link

Content-type application/json request shows as binary data #1482

Open headquarters opened 1 year ago

headquarters commented 1 year ago

Description

I've been a long time Charles Proxy user and found it to be nearly unusable on an M1 MacBook Air. Proxyman, however, is excellent! Great UI, very responsive, and has all the features I want. I've hit one major blocker to adopting it, though: requests to one application that work in Charles Proxy do not work in Proxyman. They are content-type application/json requests but show up as in the UI.

Steps to Reproduce

  1. Open Proxyman
  2. Enable SSL for this particular app (can share details via email or DM)
  3. View requests and responses
  4. Requests that are JSON content show as

Current Behavior

Screenshot from Proxyman:

Screenshot 2022-12-30 at 8 46 40 PM

All requests for this app show binary data for the JSON data in Proxyman. However, in Charles Proxy and in MITM Proxy these same requests show JSON data.

Expected Behavior

I would expect that application/json requests would show JSON data in the UI.

Environment

NghiaTranUIT commented 1 year ago

@headquarters please try using this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.15.0_Fix_gzip_decoder.dmg

The problem was the Content-Encoding: GZIP (GZIP is Uppercase, so Proxyman could not detect it).

headquarters commented 1 year ago

@NghiaTranUIT Thanks for the quick turnaround on that! I tested that build but still no luck, same binary data showing in response. I sent a new log to support for review.

NghiaTranUIT commented 1 year ago

@headquarters Sorry for my mistake 🙇 . It's fixed again with this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.15.0_Fix_Content_Encoding_v2.dmg

headquarters commented 1 year ago

That fixed it! Thank you so much.