For a long time not to update the blog, it is more and more lazy, this period changed the home work, changed the door language, 4 months of project reconstruction, a little time off, but also do not want to knock code, write something ....
Let's write it today from Charles,
Operation based on V 4.1.3 version 1. Normal PC End grab package, download the Charles software directly installed on the good, normal can be directly caught bag, if not, please close your network agent tool.
At this time you should find that the HTTPS packet capture is not data, then 2.pc HTTPS capture HTTPS first think of the certificate, yes, is required certificate, first add the certificate and then view the certificate trust certificate
Then enter the password and then you can see the certificate
After the certificate is set, the SSL agent pops up
The following port is set 443, and then you can catch the HTTPS packet 3. Then the mobile phone grab bag first configure mobile agent
And then manually set the agent on the phone to follow the pop-up
And then you can
This is the time to get the HTTP data. HTTPS crawl open mobile browser, enter the above
Then download the certificate, save it locally, this time, the Charles above window will become
This is as good as the PC-side HTTPS crawl . 4. Analog network request Charles also has a better place, that is, you can simulate the server to return a network request data, the role is that the front-end and backend defined network protocol, When the backend interface is not implemented, you can create a returned JSON file locally and then return the JSON content to the front end via the Charles Analog network request. 1. Create a local JSON file, 2.charles find your network request, and then set the JSON file in,
And then
That's it, okay?
⚠️: After the request get must keep the parameters consistent, post does not matter