Let you learn knowledge clearly, there are codes, there are explanations, copy of the walk, learn will!Copy the code

I use [MDnice] typesetting, resulting in the content is too large to put down at one time, can only be serialized

The section

  • 1-4 Familiar with basic environment
  • 5-7 Troubleshooting scenarios
  • 8-9 breakpoint explanation
  • 10-13 Detailed explanation of data agent, QA answers

Download address

1. Set up Charles to disable caching

charles-no-cache.png
setting-no-cache.png

Menu bar Tools-no caching–> Select Enable no caching

Click ok

All requests are not cached

Charles cannot catch any chrome request, Safari request can catch, Chrome traceless browsing mode can catch

There should be interference with chrome installation into the extension

After testing “Google Access Assistant 2.3.0”, my computer was disturbed by this plug-in, so the request could not be caught by Charles

Check your Chrome extension to see if there are any plugins that allow you to jump the wall. If so, turn them off

Packet capture test address: http://www.hake.net.cn/

PNG packet capture test address

This is fetching HTTP data, HTTPS look at the following

3. Chrome disables caching

Open the debug console –> Network –> Disable cache

Avoid a refresh, no request will be triggered again and Charles will not be able to catch the problem

Chrome-network-disable cache. PNG

4. MAC

Open Network Preferences — “Advanced” agent — “Uncheck” Automatic Discovery Agent”

Charles can’t catch this if there is a VPN, so uncheck the box above

Charles panel has no requests coming in if it is not closed


MAC closes the local proxy setting. PNG
Charles tutorial (2)