I am using Charles (http://www.charlesproxy.com) to debug my HTTP requests and now I run into an issue where I am receiving json response which I need to edit to see how my app behaves.
I was looking at Rewrite option but can't really figure out how to change it. Ideal would be to load whole response from disk.
Any ideas how to accomplish this? Thank you.
答案 0 :(得分:19)
Map Local工具可能正是您所需要的。通过菜单访问工具| Map Local ... 。请注意,您可能需要相应的重写规则(工具|重写... ),以确保从磁盘提供响应的mime类型以及应用程序所期望的类型。但最近版本的Charles可能会自动设置类型。
答案 1 :(得分:14)
启用断点,然后更改响应。您应该在调整响应之前按继续/发送请求发送它。
答案 2 :(得分:7)
分享如何启用断点,然后更改响应。
答案 3 :(得分:3)
如前所述,Charles Proxy(4.2.8版)允许您使用不同的方法来更改响应主体:
了解更多here