mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 00:25:56 +03:00
[GH-ISSUE #604] unzip response body #599
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#599
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 @trycatchx on GitHub (Aug 29, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/604
Originally assigned to: @NghiaTranUIT on GitHub.
hi:
I am the author of this issue #600
I use scripting to modify response.body.
this is my code:
console output:
I am sure the body is non-empty, but it is gzip.
Why body prints -> {} , it is null ?
Looking forward to your reply!
@NghiaTranUIT commented on GitHub (Aug 29, 2020):
Hi @zhangchaojiong can you show me the
console.log(response)🤔@NghiaTranUIT commented on GitHub (Aug 29, 2020):
response.bodymight be not a JSON object, soJSON.stringify()would return{}.Please help me to log the response or response.body to see what it's 😄
@trycatchx commented on GitHub (Aug 30, 2020):
@NghiaTranUIT
Sorry to keep you waiting.
According to your suggestion, I modified my code:
console ouput:
I am sure the http response.body is not null .
I use postMan to send http post requests, and use proxyMan to intercept them.
But the body on postman is not empty, proxyMan cannot print out body?
Finally, I request a non-gzip body, both postman and proxyman can run normally.
Why is the gzip body missing on proxyman?
@NghiaTranUIT commented on GitHub (Aug 30, 2020):
Thank for the screenshot. It looks like a bug for the binary body. I’m fixing it now 👍
@trycatchx commented on GitHub (Aug 30, 2020):
@NghiaTranUIT
Thank you for your precious time and look forward to your repair!
@NghiaTranUIT commented on GitHub (Aug 31, 2020):
@zhangchaojiong Please check out this build: https://download.proxyman.io/beta/Proxyman_2.5.2_Binary_Body_Scripting.dmg
If the body is a binary data, it will convert to base64 encoded String, so please make sure using
atob()to decode toUint8Array. If you would like to ungzip, you can directly pass it as a paramIf you would like to pass the Binary to the body, make sure you convert to base64 Encoded String too 👍
For instance,
@trycatchx commented on GitHub (Aug 31, 2020):
@NghiaTranUIT
https://download.proxyman.io/beta/Proxyman_2.5.2_Binary_Body_Scripting.dmg
wow, it works well !
Save me a lot of time. thx!
@NghiaTranUIT commented on GitHub (Aug 31, 2020):
Glad to hear that 😄 and thank you for reporting those bugs 👍