Reference herein: Charles mirroring tool
Mirroring tool when you visit the designated website, the crawl to clone a file and save it in the path you specify;
Note: If you configure a www.aaa.com; then only grab the files under the domain name, the domain name if references 123.abc.com external resources (such as front-end CSS, JS, etc.), external resources are not cited It will be saved;
charles generally used to capture resources identified; if you want to clone someone else's whole station down, httrack recommend using this tool, charles on clone site is not doing well, it can be very rubbish of the Battle of Five slag.
However, a small amount of file storage destination is no problem;
Save the file path to the directory structure will be the same as you browse the site, and charles creates a root directory for host names. Export and convert the file name to save the appropriate data from the URL.
Practical application : You can access the cached data, so that when there is no app server mapped to your file to crawl through the map Local, this app can continue to run;
You can also save the Web site content using mirroring tool, mapped to your file to crawl through the map Local; by modifying the file, to the local online debugging functions (because you debug the contents of the resources used by all of the machine, it does not really affect the online file);
The query string contained in the file name .
If you receive two responses the same URL, then behind a file will overwrite the previous file of the same name, so you save the latest data in the mirror.
Mirroring tool in data storage when Charles began, and therefore not subject to restrictions affecting analog slow setting (slow speed just to see the effect of your local front-end impact, but the real speed or actual speed).
HOST selected
The tool can be enabled on each request, you can only enable the selected host.
Of course, if you set the host when written resources, and so the path can be matched with the pattern. "?" Asterisk "*" and can all be used;
Alternative methods (right-save)
After using the "Mirror" tool, you can also a node (file / folder), right-click charles directory, after capturing a record of all crawl results are stored locally, it will be more easier to configure mirroring, and avoid Some junk files.
The only difference is that the tools are not recorded image recording limit setting set, and then save the response is limited, loss of data that may be present in the simulation slow time.
You may encounter pit
If mirroring tool is enabled, it will cause any compressed or encoded response is decoded.
Thus, if the server provides a response after the compression, before it is passed to the client, it will be compressed Charles solution (charles is equivalent to a filter between the client and server, and in response to any request goes through charles);
return immediately to the file after a decompression, generally will not have any effect;
but if you have built your own client, or you want to compress itself is kind of response, so now you It is not available;
herein by reference: https://www.axihe.com/