1. Charles Installation
Download and install Charles:
https://www.charlesproxy.com/download/
2. HTTP Grab bag (1) View computer IP address
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8F/54/wKioL1jbV7GixSJwAAKuSARUTjM443.png "title=" QQ20170329-144335@2x.png "alt=" Wkiol1jbv7gixsjwaakusarutjm443.png "/>
(2) Set up the phone HTTP proxy
To set up an HTTP proxy, connect your phone to your computer, and click WiFi with Wireless LAN
Server for computer IP address: such as 192.168.1.169
PORT: 8888
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/8F/56/wKiom1jbV-SwZgMFAADel57P0_M009.png "title=" 2469183-ad19fa10a1815cbc.png "alt=" Wkiom1jbv-swzgmfaadel57p0_m009.png "/>
3. HTTPS Grab Bag
HTTPS grab packets need to be set up on HTTP capture
(1) Install SSL certificate to mobile device
Click Help, SSL proxying, Install Charles Root Certificate on a Mobile Device
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8F/55/wKioL1jbWyrDJiXhAAKTW12xhmw559.png "title=" 2469183-8f47a1b1c1540ef7.png "alt=" Wkiol1jbwyrdjixhaaktw12xhmw559.png "/>
The pop-up window gets address Http://charlesproxy.com/getssl
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8F/57/wKiom1jbW0CQR-5BAABTeHnlONQ894.png "title=" 2469183-c7f6ad4a204b0bd4.png "alt=" Wkiom1jbw0cqr-5baabtehnlonq894.png "/>
Enter the address in your mobile Safari browserHttp://charlesproxy.com/getssl, the Certificate Installation page appears, click Install
the phone is set with a password to enter the password to install
(Note: There are brothers and sisters who say Safari browser enter this URLHttp://charlesproxy.com/getsslcan not install the certificate, the pro-test to (1) set up a good phone HTTP proxy (2) on the computer Charles to open
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/8F/55/wKioL1jbW47jOyCYAACmPLFVymw397.png "title=" 2469183-7ed4a5c8c2a36217.png "alt=" Wkiol1jbw47joycyaacmplfvymw397.png "/>
(2) Charles set proxy
Proxy--SSL proxying Settings ...
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8F/55/wKioL1jbXnGBYrS9AAQMJ1qPoW8524.png "title=" QQ20170329-150227@2x.png "alt=" wkiol1jbxngbyrs9aaqmj1qpow8524.png "/> Tick enable SSL proxying, click Add
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8F/57/wKiom1jbXt2Stot3AACPpDSq5nc160.png "style=" float : none; "title=" 2469183-11eb2be75eae13fb.png "alt=" Wkiom1jbxt2stot3aacppdsq5nc160.png "/>
host completed:https://api.weibo.cn
Port filled in: 443
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/55/wKioL1jbXuHwzFLeAAKdDVJxmug211.png "style=" float : none; "title=" 2469183-ca37de9cdb920511.png "alt=" Wkiol1jbxuhwzfleaakddvjxmug211.png "/>
(3) make HTTPS grab packet
Let the phone resend the HTTPS request, you can see the clutch
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8F/55/wKioL1jbXzDS-DdwAAQ3S43Nr7U579.png "title=" 2469183-5f1b21912781d466 (1). png "alt=" Wkiol1jbxzds-ddwaaq3s43nr7u579.png "/>
This article from "front-end" blog, declined reprint!
Charles Grab Bag (iOS Http/https request)