Use fiddler to capture and analyze iphone app data

Source: Internet
Author: User

Original from:

Http://www.cr173.com/html/20064_1.html

Fiddler can capture requests made by ISO devices, such as the iphone, IPad, and MacBook.  Wait for the Apple device. In the same vein, you can intercept the HTTP/HTTPS that andriod,windows phone devices emit.

    install Fiddler machine, with the iphone in the same network, otherwise the iphone can not send HTTP to the Fiddler machine. It is recommended to install the latest version of Fiddler;

config fiddler :

Open Fiddler, tools-> Fiddler Options Allow remote connections. (remember to restart Fiddler when you're done configuring it)

    select" Decrpt HTTPS traffic ",    fiddler to intercept HTTPS requests;

    Select Allow remote computers to connect" .   allows other machines to send HTTP/HTTPS requests to Fiddler;

   

get the IP address of the machine where Fiddler is located , the address of the machine where I fidder is: 192.168.1.104;

Install Fiddler certificate on iphone

    This step is to allow Fiddler to capture HTTPS requests. If you only need to intercept HTTP requests, you can ignore this step, but now the network interaction is more HTTPS, so still need to take this step;

    1. The first thing to know is the IP address of the machine where Fiddler is located: if the IP address of the machine I installed fiddler is: 192.168.1.104

    2. Open iphone Safari, visit  http://192.168.1.104:8888, click "Fiddlerroot Certificate" and install the certificate

Configure Fiddler as Agent on iphone

Open the iphone, find your network connection, open the HTTP proxy, enter the IP address of the machine where the Fiddler is located (for example: 192.168.1.104), and the fiddler port number 8888

It's done, start grabbing the bag.

    Now the Http/https from iphone apps (like Safari, Firefox, Itunes, App Store) can be fiddler.

If you think crawling data is not easy enough, you can add filters:

is HTTP and https intercepted???? , you can not only intercept, but also the breakpoint, modify the request, modify the response, do want.

When you're done, remember to turn off the fiddler agent on your iphone so that the iphone doesn't get online.

Only HTTP can be captured, not HTTPS solution

Sometimes it turns out that Fiddler can only capture an HTTP request from the iphone, not the HTTPS request, possibly because the certificate is not installed. The solution is:

1. Remove all fiddler certificates from iphone (iphone, click "Settings", "General", "profile")

2. Install the above method to reinstall the Fiddler certificate

Use fiddler to capture and analyze iphone app data

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.