Packet capture tool Charles (1) - download, install and set

  • Whether in testing or development work, capturing packets is a very important and commonly used skill.
  • As a packet capture tool, Charles can meet most of the work needs.

1. Download address

  • Charles official website address: https://www.charlesproxy.com/
  • After entering the official website, you can see the download entry directly on the right, click the entry to enter the download page.
    (Downloading the Charles installation package may be very slow. I also uploaded the installation package to the network disk. You can directly search the official account [Skills Required for Software Testing] or click on the bottom of the article, click on the official account card to scan the QR code, and go to Follow to receive. )
    insert image description here
  • Download the installation package for the corresponding system as required
    insert image description here

2. Installation

  • The installation process is very simple, that is, after clicking the installation package, go all the way down to "Next" (the default installation is on the C drive, if you want to install it in another location, remember to modify it).
  • The process is relatively simple and will not be repeated here.
    insert image description here
    insert image description here
  • After the installation is complete, Charles will not set a shortcut on the desktop by default. You can find the "Charles.exe" file in the installation directory, right-click, and select "Send to - Desktop Shortcut"
    insert image description here

3. Install the root certificate (computer)

  • After starting the application, it will prompt that it is currently a 30-day trial version. The solution can also be obtained from the official account, so I won’t go into details here.
    (Search the official account [Software Testing Essential Skills] or click on the bottom of the article to get it)
    insert image description here
  • 找到“help–>SSL Proxying–> Install Charles Root Ceriticate”
    insert image description here
  • Click Install Certificate
    insert image description here
  • Click "Next"
    insert image description here
  • 1. Select "Put all certificates into the following storage"
  • 2. Click "Browse"
  • 3. Select "Trusted Root Certification Authorities" in the pop-up box, and click OK
  • 4. Click "Next Page"
    insert image description here
  • Click "Finish"
    insert image description here

4. Settings

  • Find the Proxy-Proxy setting
    insert image description here
  • Set the port to "8888" (or other ports, not occupied or conflicted), and check "Enable transparent HTTP proxying". (If the default setting is checked, no processing is required)
  • After setting is complete, save
    insert image description here
  • Find "Proxy->SSL Proxying Settings"
    insert image description here
  • Tick ​​Enable SSL Proxying
  • Add the domain name and port to be crawled
  • Set according to the order in the figure (the "*" code is all, there is no specific requirement, you can directly refer to the configuration in the figure)
    insert image description here

Five, grab bag

  • After the above steps are completed, you can try to open any website in your browser.
  • Note: Windows proxy needs to be turned on. Right-click Charles in the status bar to confirm whether it is checked.
    insert image description here
  • At this time, you can see that Charles has started to capture the interface
    insert image description here

Appendix: Interface Functional Testing Series Tutorial Contents

Packet capture tool Charles (1) - download, install and set up
packet capture tool Charles (2) - mobile APP packet capture (set up mobile phone proxy, install certificate)
packet capture tool Charles (3) - tutorial interface introduction, basic functions ( Weak network, editing, retransmission)
Packet capture tool Charles (4) - Introduction to common functions (save, import and export, filter, sort)
Packet capture tool Charles (5) - Use local mapping to modify interface response content (Map local)
Packet capture Tool Charles (6) - use remote mapping to redirect interface requests (Map remote)

General Catalog - Zero-Basic Getting Started Interface Functional Testing Tutorial

—————————————————————————————————————————
Charles installation package has been uploaded to the official account of the blog with the same name [Software Testing Necessary skills].
The public will also upload test-related materials from time to time, and they can go to collect them if necessary.
insert image description here
If necessary, click on the QR code at the bottom of the article to get it~insert image description here

Guess you like

Origin blog.csdn.net/weixin_40883833/article/details/128842238