How to change response body with Charles?

The Map Local tool is probably what you're looking for. Access via menu Tools | Map Local.... Note, you may need a corresponding rewrite rule (Tools | Rewrite...) to ensure the mime type of your response served from disk and the type your application is expecting. But recent versions of Charles may set the type automatically.


Share how to Enable breakpoints, then change response.

  1. request the link firstly. then enable breakpoint > in the http request right click > choose Breakpoints
    enter image description here
    2. Menu Proxy > Breakpoints Settings > double click the request link enter image description here
    3. change the Scheme GET/POST > Query * enter image description here
    4. modify the request, change the tab Edit Request > you can change the URL, Headers, Cookies, etc > then click the Execute enter image description here
    5. edit the response: choose tab Edit Response > change the response > click the Execute enter image description here
    Enjoy it. You make it.