How to Use charles to capture the http/https requests of a page to capture packets, charleshttps

Source: Internet
Author: User

How to Use charles to capture the http/https requests of a page to capture packets, charleshttps

Yesterday, in the music module of the TV App Store, the operations staff suddenly told me that they could not play music. In the past, the client first looked at the client log, and then informed the server that the interfaces had problems. However, if the client member leaves the company, this can be a closed loop. Because I have just handed over the server, I am not familiar with the corresponding data interfaces on the client page. Recommended by the client, I found the Charles package capturing artifact. Next I will explain how to use charles to capture http/https requests on the page:

1. decompress and run Charles;

We decompress the charles.zip file on the local PC. After the file is decompressed, run the charles.exe file directly, and Charles starts the file.

2. Set a TV proxy;

We need to set the http proxy in the wireless network connection of the TV. The server address is the IP address of the PC and the port number is 8888.

At this time, we browsed various pages of the TV App Store, and Charles captured the http interface information for accessing the server from time to time.

Is it possible to use Charles to capture packets in a TV game center?

When I browsed various pages in the game center on TV, charles did not capture data.

Through communication with the client, I learned that the game center uses the https interface, and charles needs to install the certificate to capture the https interface. In this regard, I have taken the following measures:

1. Install a certificate for the PC;

Select Help-> SSL Proxying-> Install Charles Root Certificate in Charles, so that the Certificate is installed in the PC.

2. Install a certificate for the TV;

Choose Help> SSL Proxying> Install Charles Root Certificate on a Mobile Device or Remote Browser in Charles. The prompt box is displayed.

.

In the PC browser, enter ghost.

Ps: The certificate must be downloaded from the PC and copied to the TV. You can enter the downloaded certificate in the browser on the TV and cannot install the certificate.

3. Enable the SSL Proxy function;

In Charles, select Proxy-> SSL Proxying Setting, select Enable SSL Proxying, and add the website to use the SSL Proxy in Locations. Enter 443 in the port number, if you need to match all HTTPS websites, enter the * number,

At this point, we can use Charles to capture packets for the https interface.

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.