In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to achieve Charles grab bag". In daily operation, I believe that many people have doubts about how to achieve Charles grab bag. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to realize Charles grab bag". Next, please follow the editor to study!
1. Charles installation
Download and install Charles on the official website:
Https://www.charlesproxy.com/download/
2. HTTP grab bag (1) check the IP address of the computer
(2) set up HTTP proxy for mobile phone
Connect the phone to the computer, click "Settings-> Wireless Local area Network-> connected WiFi", and set up the HTTP proxy:
The server is the computer IP address, such as 192.168.1.169
Port: 8888
After setting up the agent, you need to open Charles on your computer to surf the Internet.
(3) Open Charles on the computer to grab the bag by HTTP.
Open an App or browser on your phone. If you can't surf the Internet, check whether the previous steps are correct.
Click "Allow" to allow, and the list of HTTP requests for the phone appears.
3. HTTPS grabs the bag
The packet grab of HTTPS needs to be set on the basis of HTTP packet capture.
Before setting up, grab the package HTTPS is like this.
After setting, grab the package HTTPS and look like this.
The following are the further steps to set up the HTTP grab package based on HTTP grab package: (1) install the SSL certificate to the mobile device
Click Help-> SSL Proxying-> Install Charles Root Certificate on a Mobile Device
A pop-up window appears to get the address chls.pro/ssl
Enter the address chls.pro/ssl in the mobile Safari browser, and the certificate installation page appears. Click install.
The mobile phone is installed with an input password with a password.
Note:
If the Safari browser enters this URL and chls.pro/ssl cannot install the certificate, you need to note:
Set up the mobile phone HTTP proxy
The Charles on the computer should be turned on.
(2) Certificate trust settings
For iOS 10.3 system and above, you need to enable full trust → certificate in the setting of → generic Charles certificate trust settings for native Charles certificate trust, and open the trust official button.
(3) Charles sets Proxy
Proxy-> SSL Proxying Settings...
Check Enable SSL Proxying and click Add
Host sets the https interface to be crawled, such as if you want to grab this.
Host: https://api.weibo.cn
Port fill in: 443,
(4) grab the package by HTTPS
If you ask the phone to resend the https request, you can see the packet capture.
Note: if you do not grab the bag, please turn off the mobile phone HTTP agent, otherwise you will not be connected to the Internet after you are disconnected from the computer.
At this point, the study on "how to achieve Charles bag capture" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.