Use Charles Proxy for Mac to crawl the mobile app's network package

Source: Internet
Author: User

Before doing Web projects, often use Fiddler (under Windows), Charles Proxy (under the Mac) to grab the package, debugging something, now engaged in Android app development, sometimes need to analyze the mobile app network requests, including parameters, return values and so on. There are a few steps that you can continue to use with Charles Proxy to catch a network packet from the Android app on your Mac:

1, ensure that the phone and Mac are connected to the same wireless LAN

2, open the Charles Proxy on the Mac, menu bar operation: Proxy→proxy Setting, check the port, generally keep the default, HTTP Proxy port is 8888

3. Check your Mac's current IP address, then use it as proxy IP for your phone:

4, edit the phone's WiFi connection, long press the current connected WiFi network:

5. Select "Modify Network" to enter the editing mode of the network connection (select "Show Advanced Options") and Save:

6, at this time can be in the mobile phone app to do a random operation, such as the Tieba client one-click Check-in:

7, observe the grasp of the package on Charles Proxy:

The captured packet display is very friendly and can be edited for requests that have already been sent, then sent again (mock request and parse result).

The above is a general use of the process, about this Charles Proxy, do not introduce too much, windows, you can use Fiddler (2/4), the default port is also 8888, of course, you can easily change.

In addition, a download package with Charles Proxy for MAC (with serial number: for lazy people): charles-proxy-for-mac-3.8.1

Use Charles Proxy for Mac to crawl the mobile app's network package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.