ProxymanApp / Proxyman

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

Search params encode issue for Map Remote and Scripting #2036

Open JasonBoy opened 1 month ago

JasonBoy commented 1 month ago

Description

I have some api using strapi cms, when I use proxyman to proxy to local strapi host, the query string looks like being changed, especially for the key of the querystring, which should be not be encoded for the target strapi api, the sort[0]= should be untouched, but after mapped, it was encoded to sort%5B0%5D=, results 400 error; both map remote and scripting has this issue, also one case I encountered before is that when the url has some Chinese directly, it also proxied incorrectly in scripting, hope to take a look

CleanShot 2024-05-27 at 00 06 35@2x the left is mapped, the right one is not using map remote: CleanShot 2024-05-27 at 00 18 08@2x

Steps to Reproduce

Current Behavior

key of the querystring was encoded

Expected Behavior

key of the querystring should not be touched

Environment

NghiaTranUIT commented 1 month ago

Thanks, let me investigate it on both macOS and Windows 👍

NghiaTranUIT commented 1 month ago

@JasonBoy can you check this Beta build: https://download.proxyman.io/beta/Proxyman_5.3.0_Fix_Map_Remoter_with_percent-encoded.dmg

It's fixed with Map Remote.

Screenshot 2024-05-27 at 1 14 55 PM

I'm working on the Scripting.

JasonBoy commented 4 weeks ago

@NghiaTranUIT I am using scripting, but with latest 5.4, I'am still have this issue: CleanShot 2024-05-31 at 17 16 12 image

JasonBoy commented 4 weeks ago

was this fixed only on map remote currently?

NghiaTranUIT commented 4 weeks ago

it's fixed on the Map Remote and Breakpoint.

JasonBoy commented 4 weeks ago

OK, i will try map remote

JasonBoy commented 4 weeks ago

@NghiaTranUIT sorry to bother, after trying the v5.4, I'm still facing the issue, here are some screenshots:

image image
NghiaTranUIT commented 4 weeks ago

@JasonBoy sorry, can you try this Beta build: https://download.proxyman.io/beta/Proxyman_5.4.0_Fix_Percent_encoded_in_Map_Remote_and_Breakpoint.dmg

My mistake is that this fix doesn't include on the latest build : /

JasonBoy commented 3 weeks ago

@NghiaTranUIT This build works, thanks