IOS development-use Charles for https packet capture

Source: Internet
Author: User

IOS development-use Charles for https packet capture

In the previous two blogs, "introduction and use of the network packet capture tool Charles" and "iOS development-detailed explanation of http packet capture using Charles" gave a detailed explanation of Charles's http packet capture. Today, we will implement https packet capture, which is a little more troublesome than http packet capture.

(1) For https basic configuration, see the https configuration section in "introduction and use of the network packet capture tool Charles.

(2) Because iOS9 has changed the security mechanism for the https network, you also need to install a certificate on the iPhone. The installation method is as follows:

Enter the URL: http://www.charlesproxy.com/getssl in the iPhone's Safari browser. Install the Custom Root certificate. After the installation is complete, you can go to the Settings> General --> description file to view all your installed certificates. So far, at least two certificates have been installed for https packet capture. The first one is installed in "introduction and use of the network packet capture tool Charles.

(3) So far, the https configuration has been completed. Open any App on the iPhone and check the packet capture result:

.

Http headers are all generated through http packet capture; https headers are generated through https packet capture. If you have not configured https packet capture, there is a lock in front of https, and the blue ball is displayed if the packet capture is successful.

An https packet capture result is as follows: some introductions on usage and parameters are the same as http packet capture. For more information, see iOS development-how to use Charles to capture http packets.

.

In summary, packet capture is still very useful in actual development and is also an essential part in network programming. We recommend that you use the previous two blogs to learn "introduction and use of the network packet capture tool Charles" and "iOS development-use Charles for http packet capture details".

Github home: https://github.com/chenyufeng1991. Welcome to visit!

Recently, geek college Wiki is developing a map of IT vocational skills. I am mainly responsible for iOS. If you are interested, you can join us. If you have any questions or modifications, you can send me an issues or pull request. Https://github.com/chenyufeng1991/skillmap.

Related Article

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.