Fiddler: Crawling HTTPS packets on PCs and mobile devices

Source: Internet
Author: User

Fiddler is a free web debugging agent that supports any browser, system, and platform. This tool is a must-have tool for Web and app network development, and is stamped here for download.

According to the Fiddler official website Description, has the following six major characteristics:

Web Debug Performance test Http/https traffic logging

Web session processing security Testing custom Extensibility

The main content of this article is how to set up the fiddler so that HTTPS packets can be crawled on both PC and mobile devices.

First, select Tools->fiddleroptions in the menu bar and switch to the Connections tab

Second step, tick allow remote connection and set a port number (as far as possible to the high setting):

Third, in the menu bar select File->capture Traffic, in the browser to access a URL to start crawling HTTP packets:

In this step, HTTPS packets cannot be crawled. To crawl HTTPS packets, further setup is needed.

Switch fiddleroptions to the HTTPS tab, tick capture HTTPS connects and decrypt HTTPS traffic, then click Export Root certificate to desktop:

This will generate a certificate file on the desktop:

Next install this certificate to a different browser, in Firefox, for example, in the preferences, switch to "advanced", click to view the certificate:

Click "Import ..." To import the root certificate generated on the desktop:

When you're ready, you can start crawling HTTPS packets by entering a link at the beginning of a https://in your browser:

For mobile devices, set up the agent when connecting to WiFi, set the proxy as your PC, that is, the server is your PC's IP address, and the port number is the port number set in Fiddler.

Next, to decrypt HTTPS traffic, you also need to install the root certificate you just set on your mobile device, open your browser, and enter http://[fiddlerserver]:[port]/fiddlerroot.cer.

Take my case as an example, enter Http://10.0.0.27:9812/FiddlerRoot.cer

After the browser prompts you to install the certificate, after the installation is successful, your mobile device can access the HTTPS link through the remote agent, and the Fiddler can successfully crawl the HTTPS packet.

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.