Charles is one of the best package capture tools on the Mac.

Download address

1. Set not to cache

Usage: The request is the latest request

Set the path: Charles — tools –no caching — enable no caching — OK

2, map the remote

Purpose: Can replace any URL into the required URL

As the above configuration, you can directly open the digging gold home page after entering baidu’s address

3, map the local

Purpose: Can proxy online resources directly to local code. Or modify the interface return to self-test the code.

4, rewrite

Usage: 1, local development can set header(most backend students will add refer verification request) 2, batch set project debugging file

5, DNS Spoofing

Purpose: Implements functions similar to SwitchHost

Path: Charles — tools –DNS spoofing