Charles Grab Bag (iOS Http/https request)

Source: Internet
Author: User
Tags ssl certificate

    • Charles Installation
    • HTTP Grab Bag
    • HTTPS Grab Bag

1. Charles installation Download and install Charles: https://www.charlesproxy.com/download/ 2. HTTP Grab Packet(1) View computer IP address

      Hold down the option keyboard and click the WiFi icon to view

(2) Set up the phone HTTP proxy

    Mobile phone connected to the computer, click on the "set-up wireless LAN-and-connect wifi-> configuration Agent", set Manual:
Server for computer IP address: such as 172.30.8.226
PORT: 8888

After setting up the agent, you need to open Charles on your computer to surf the internet

(3) Open Charles on the computer for the HTTP grab packet

    Open an app or browser on your phone, if you can't surf the internet, check if the previous steps are correct

    Click "Allow", the list of phone HTTP requests appears

3. HTTPS Grab Bag

  HTTPS grab packets need to be set on HTTP capture

Set the front grab packet https is like this

Set after grab packet https long like this

4, on the basis of the HTTP capture packet HTTPS further setup steps:(1) Install SSL certificate to mobile device

    Click Help, SSL proxying, Install Charles Root Certificate on a Mobile Device

Pop-up window appears get address: Chls.pro/ssl

In the Mobile Safari browser Enter the address Chls.pro/ssl, download the certificate, the certificate Installation page appears, click Install

The phone is set with a password to enter the password to install

Note 1: Some children's paper said Safari browser input URL Chls.pro/ssl can not install the certificate properly:

① set up the phone HTTP proxy.

② on the computer, Charles is going to drive.

Note that the above 2:IOS10 system needs to be set up:

Settings--general--about the certificate trust settings---enable full trust on the root certificate open switch

(2) Charles set proxy

    Proxy--SSL proxying Settings ...

Tick Enable SSL proxying, click Add, then OK

Host sets the HTTPS interface to crawl, and the host and port can be filled in as follows:

(3) HTTPS grab packet

    Let the phone resend the HTTPS request, you can see the clutch

Attention:

Do not grab the bag please turn off the phone HTTP proxy, or disconnect from the computer will not connect to the Internet

Charles Grab Bag (iOS Http/https request)

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.